-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (45 loc) · 1.57 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
cmake_minimum_required(VERSION 3.9...3.24 FATAL_ERROR)
project(solanaceae)
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(SOLANACEAE_UTIL_STANDALONE ON)
else()
set(SOLANACEAE_UTIL_STANDALONE OFF)
endif()
message("II SOLANACEAE_UTIL_STANDALONE " ${SOLANACEAE_UTIL_STANDALONE})
option(SOLANACEAE_UTIL_BUILD_TESTING "Build the solanaceae_util tests" ${SOLANACEAE_UTIL_STANDALONE})
message("II SOLANACEAE_UTIL_BUILD_TESTING " ${SOLANACEAE_UTIL_BUILD_TESTING})
add_library(solanaceae_util
./solanaceae/util/span.hpp
./solanaceae/util/bitset.hpp
./solanaceae/util/utils.hpp
./solanaceae/util/utils.cpp
./solanaceae/util/uuid_generator.hpp
./solanaceae/util/uuid_generator.cpp
./solanaceae/util/config_model.hpp
./solanaceae/util/config_model.inl
./solanaceae/util/simple_config_model.hpp
./solanaceae/util/simple_config_model.cpp
./solanaceae/util/event_provider.hpp
)
target_include_directories(solanaceae_util PUBLIC .)
target_compile_features(solanaceae_util PUBLIC cxx_std_17)
#target_link_libraries(solanaceae_util PUBLIC
#)
########################################
add_library(solanaceae_file2
./solanaceae/file/file2.hpp
./solanaceae/file/file2_std.hpp
./solanaceae/file/file2_std.cpp
./solanaceae/file/file2_mem.hpp
./solanaceae/file/file2_mem.cpp
)
target_include_directories(solanaceae_file2 PUBLIC .)
target_compile_features(solanaceae_file2 PUBLIC cxx_std_17)
target_link_libraries(solanaceae_file2 PUBLIC
solanaceae_util
)
########################################
if (SOLANACEAE_UTIL_BUILD_TESTING)
include(CTest)
add_subdirectory(./test)
endif()