cryptutils

Cryptographic Software Utilities
git clone http://git.omkov.net/cryptutils
Log | Tree | Refs | README | LICENCE | Download

cryptutils/CMakeLists.txt (23 lines, 717 B) -rw-r--r-- file download

45f70e3 Jamozed 2022-03-06 17:15:30
0
cmake_minimum_required(VERSION 3.12)
45f70e3 Jamozed 2022-03-06 17:15:30
1
project(cryptutils LANGUAGES C)
a70b8cf Jamozed 2020-07-25 12:33:43
2
45f70e3 Jamozed 2022-03-06 17:15:30
3
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
45f70e3 Jamozed 2022-03-06 17:15:30
4
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
45f70e3 Jamozed 2022-03-06 17:15:30
5
set(CMAKE_STATIC_LIBRARY_PREFIX "")
a70b8cf Jamozed 2020-07-25 12:33:43
6
45f70e3 Jamozed 2022-03-06 17:15:30
7
find_package(OpenSSL REQUIRED)
79268b0 Jamozed 2021-01-23 21:37:30
8
45f70e3 Jamozed 2022-03-06 17:15:30
9
file(GLOB SRC_UTIL ${PROJECT_SOURCE_DIR}/src/util/*)
6821095 Jamozed 2020-07-25 12:51:02
10
45f70e3 Jamozed 2022-03-06 17:15:30
11
add_library(libutil STATIC ${SRC_UTIL})
6821095 Jamozed 2020-07-25 12:51:02
12
45f70e3 Jamozed 2022-03-06 17:15:30
13
link_libraries(libutil)
6821095 Jamozed 2020-07-25 12:51:02
14
45f70e3 Jamozed 2022-03-06 17:15:30
15
add_executable(alder32 ${PROJECT_SOURCE_DIR}/src/alder32.c)
45f70e3 Jamozed 2022-03-06 17:15:30
16
add_executable(crc32   ${PROJECT_SOURCE_DIR}/src/crc32.c)
45f70e3 Jamozed 2022-03-06 17:15:30
17
add_executable(fnv1a64 ${PROJECT_SOURCE_DIR}/src/fnv1a64.c)
45f70e3 Jamozed 2022-03-06 17:15:30
18
add_executable(otp     ${PROJECT_SOURCE_DIR}/src/otp.c)
45f70e3 Jamozed 2022-03-06 17:15:30
19
add_executable(rc2     ${PROJECT_SOURCE_DIR}/src/rc2.c)
79268b0 Jamozed 2021-01-23 21:37:30
20
45f70e3 Jamozed 2022-03-06 17:15:30
21
target_link_libraries(otp OpenSSL::Crypto)
22