mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
e5a2958458
* 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
38 lines
540 B
CMake
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()
|