Debian Codegraph @

utils/vcpkg_ports/argon2/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.8)
2 project(argon2 C)
3
4 set(PROJECT_VERSION 20190702)
5
6 if(MSVC)
7 add_compile_options(/W3)
8 endif()
9
10 include_directories(include src)
11
12 set(SRC
13 src/argon2.c
14 src/core.c
15 src/encoding.c
16 src/ref.c
17 src/thread.c
18 src/opt.c
19 src/blake2/blake2b.c
20 )
21
22 set(HEADERS
23 include/argon2.h
24 )
25
26 add_library(argon2 ${SRC})
27
28 install(
29 TARGETS argon2
30 RUNTIME DESTINATION bin
31 LIBRARY DESTINATION lib
32 ARCHIVE DESTINATION lib
33 )
34
35 if(NOT DISABLE_INSTALL_HEADERS)
36 install(FILES ${HEADERS} DESTINATION include)
37 endif()