-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
61 lines (57 loc) · 2.19 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(HashLibPlus VERSION 1.0)
file(GLOB_RECURSE SRC_FILES Base/*.cpp Crypto/*.cpp Params/*.cpp Utils/*.cpp)
add_executable(HashLibPlus HashLibPlus.cpp ${SRC_FILES})
target_include_directories(HashLibPlus
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/Base
${CMAKE_CURRENT_SOURCE_DIR}/Checksum
${CMAKE_CURRENT_SOURCE_DIR}/Crypto
${CMAKE_CURRENT_SOURCE_DIR}/Enum
${CMAKE_CURRENT_SOURCE_DIR}/Hash32
${CMAKE_CURRENT_SOURCE_DIR}/Hash64
${CMAKE_CURRENT_SOURCE_DIR}/Hash128
${CMAKE_CURRENT_SOURCE_DIR}/Interfaces
${CMAKE_CURRENT_SOURCE_DIR}/KDF
${CMAKE_CURRENT_SOURCE_DIR}/MAC
${CMAKE_CURRENT_SOURCE_DIR}/Nullable
${CMAKE_CURRENT_SOURCE_DIR}/NullDigest
${CMAKE_CURRENT_SOURCE_DIR}/Params
${CMAKE_CURRENT_SOURCE_DIR}/Utils
)
add_library(hashplus STATIC ${SRC_FILES})
target_include_directories(hashplus
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/Base
${CMAKE_CURRENT_SOURCE_DIR}/Checksum
${CMAKE_CURRENT_SOURCE_DIR}/Crypto
${CMAKE_CURRENT_SOURCE_DIR}/Enum
${CMAKE_CURRENT_SOURCE_DIR}/Hash32
${CMAKE_CURRENT_SOURCE_DIR}/Hash64
${CMAKE_CURRENT_SOURCE_DIR}/Hash128
${CMAKE_CURRENT_SOURCE_DIR}/Interfaces
${CMAKE_CURRENT_SOURCE_DIR}/KDF
${CMAKE_CURRENT_SOURCE_DIR}/MAC
${CMAKE_CURRENT_SOURCE_DIR}/Nullable
${CMAKE_CURRENT_SOURCE_DIR}/NullDigest
${CMAKE_CURRENT_SOURCE_DIR}/Params
${CMAKE_CURRENT_SOURCE_DIR}/Utils
)
add_executable(HashLibPlus.Tests HashLibPlus.Tests/HashLibPlus.Tests.cpp)
target_include_directories(HashLibPlus.Tests
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Base
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Checksum
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Crypto
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Hash32
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Hash64
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/Hash128
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/KDF
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/MAC
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/XOF
${CMAKE_CURRENT_SOURCE_DIR}/HashLibPlus.Tests/NullDigest
)
add_subdirectory ( HashLibPlus.Tests/Catch2-2.13.6 )
target_link_libraries(HashLibPlus.Tests PUBLIC hashplus)