keepassxc/utils/vcpkg_ports/argon2/CMakeLists.txt
Jonathan White e5a2958458 Revert back to Argon2 reference library
* Fix #7487 - Botan does not use threads when calculating Argon2 KDF leading to very poor performance for a parallelism value > 1.
* Include port file for vcpkg backed builds
2022-03-06 12:50:17 -05:00

38 lines
540 B
CMake

cmake_minimum_required(VERSION 3.8)
project(argon2 C)
set(PROJECT_VERSION 20190702)
if(MSVC)
add_compile_options(/W3)
endif()
include_directories(include src)
set(SRC
src/argon2.c
src/core.c
src/encoding.c
src/ref.c
src/thread.c
src/opt.c
src/blake2/blake2b.c
)
set(HEADERS
include/argon2.h
)
add_library(argon2 ${SRC})
install(
TARGETS argon2
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
if(NOT DISABLE_INSTALL_HEADERS)
install(FILES ${HEADERS} DESTINATION include)
endif()