2024-06-25 12:59:00 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9...3.24 FATAL_ERROR)
|
2023-07-21 20:24:23 +02:00
|
|
|
|
|
|
|
project(solanaceae)
|
|
|
|
|
2024-06-25 12:44:43 +02:00
|
|
|
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})
|
|
|
|
|
2023-07-21 20:24:23 +02:00
|
|
|
add_library(solanaceae_util
|
2024-03-28 15:34:43 +01:00
|
|
|
./solanaceae/util/span.hpp
|
2024-06-25 12:44:43 +02:00
|
|
|
./solanaceae/util/bitset.hpp
|
2024-03-28 15:34:43 +01:00
|
|
|
|
2024-01-13 22:31:20 +01:00
|
|
|
./solanaceae/util/utils.hpp
|
|
|
|
./solanaceae/util/utils.cpp
|
|
|
|
|
2024-04-12 19:32:18 +02:00
|
|
|
./solanaceae/util/uuid_generator.hpp
|
|
|
|
./solanaceae/util/uuid_generator.cpp
|
|
|
|
|
2023-07-21 20:24:23 +02:00
|
|
|
./solanaceae/util/config_model.hpp
|
|
|
|
./solanaceae/util/config_model.inl
|
|
|
|
|
|
|
|
./solanaceae/util/simple_config_model.hpp
|
|
|
|
./solanaceae/util/simple_config_model.cpp
|
2023-07-21 22:07:23 +02:00
|
|
|
|
|
|
|
./solanaceae/util/event_provider.hpp
|
2023-07-21 20:24:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(solanaceae_util PUBLIC .)
|
|
|
|
target_compile_features(solanaceae_util PUBLIC cxx_std_17)
|
2023-07-21 20:30:57 +02:00
|
|
|
#target_link_libraries(solanaceae_util PUBLIC
|
2023-07-21 20:24:23 +02:00
|
|
|
#)
|
|
|
|
|
2024-03-28 15:34:43 +01:00
|
|
|
########################################
|
|
|
|
|
|
|
|
add_library(solanaceae_file2
|
|
|
|
./solanaceae/file/file2.hpp
|
|
|
|
./solanaceae/file/file2_std.hpp
|
|
|
|
./solanaceae/file/file2_std.cpp
|
2024-04-03 21:03:04 +02:00
|
|
|
./solanaceae/file/file2_mem.hpp
|
|
|
|
./solanaceae/file/file2_mem.cpp
|
2024-03-28 15:34:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(solanaceae_file2 PUBLIC .)
|
|
|
|
target_compile_features(solanaceae_file2 PUBLIC cxx_std_17)
|
|
|
|
target_link_libraries(solanaceae_file2 PUBLIC
|
|
|
|
solanaceae_util
|
|
|
|
)
|
2024-06-25 12:44:43 +02:00
|
|
|
|
|
|
|
########################################
|
|
|
|
|
|
|
|
if (SOLANACEAE_UTIL_BUILD_TESTING)
|
|
|
|
include(CTest)
|
|
|
|
add_subdirectory(./test)
|
|
|
|
endif()
|
|
|
|
|