Browse Subversion Repository
Contents of /trunk/ttssh2/argon2/CMakeLists.txt
Parent Directory
| Revision Log
Revision 9327 -
( show annotations)
( download)
Wed Jun 30 13:36:59 2021 UTC
(2 years, 10 months ago)
by zmatsuo
File MIME type: text/plain
File size: 1198 byte(s)
cmakeビルド時VS2008でエラーが出ないよう修正
| 1 |
set(PACKAGE_NAME "argon2") |
| 2 |
|
| 3 |
project(${PACKAGE_NAME}) |
| 4 |
|
| 5 |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/") |
| 6 |
|
| 7 |
add_library( |
| 8 |
${PACKAGE_NAME} |
| 9 |
argon2.h |
| 10 |
../../libs/argon2/src/argon2.c |
| 11 |
../../libs/argon2/src/blake2/blake2-impl.h |
| 12 |
../../libs/argon2/src/blake2/blake2.h |
| 13 |
../../libs/argon2/src/blake2/blake2b.c |
| 14 |
../../libs/argon2/src/blake2/blamka-round-opt.h |
| 15 |
../../libs/argon2/src/blake2/blamka-round-ref.h |
| 16 |
../../libs/argon2/src/core.c |
| 17 |
../../libs/argon2/src/core.h |
| 18 |
../../libs/argon2/src/encoding.c |
| 19 |
../../libs/argon2/src/encoding.h |
| 20 |
../../libs/argon2/src/ref.c |
| 21 |
../../libs/argon2/src/thread.c |
| 22 |
../../libs/argon2/src/thread.h |
| 23 |
) |
| 24 |
|
| 25 |
if(MSVC AND (MSVC_VERSION LESS_EQUAL 1500)) |
| 26 |
# Visual Studio 2005, 2008 (1500=VS2008) |
| 27 |
target_sources( |
| 28 |
${PACKAGE_NAME} |
| 29 |
PRIVATE |
| 30 |
compat/stdint.h |
| 31 |
) |
| 32 |
target_include_directories( |
| 33 |
${PACKAGE_NAME} |
| 34 |
PUBLIC |
| 35 |
${CMAKE_CURRENT_LIST_DIR}/compat |
| 36 |
) |
| 37 |
endif() |
| 38 |
|
| 39 |
source_group( |
| 40 |
"libs_argon2" |
| 41 |
REGULAR_EXPRESSION |
| 42 |
"libs/argon2/") |
| 43 |
|
| 44 |
target_include_directories( |
| 45 |
${PACKAGE_NAME} |
| 46 |
PUBLIC |
| 47 |
${CMAKE_CURRENT_LIST_DIR}/ |
| 48 |
PRIVATE |
| 49 |
${CMAKE_CURRENT_LIST_DIR}/../../libs/argon2/src |
| 50 |
) |
| 51 |
|
|