2022-03-11 23:12:10 +01:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(kraken VERSION 0.0.0 LANGUAGES CXX)
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
# Add a dummy target to share all our compile options
|
|
|
|
add_library(common_options INTERFACE)
|
|
|
|
target_compile_features(common_options INTERFACE
|
|
|
|
cxx_std_20
|
|
|
|
)
|
|
|
|
target_compile_options(common_options INTERFACE
|
|
|
|
-Wall
|
|
|
|
-Wextra
|
|
|
|
)
|
|
|
|
target_include_directories(common_options INTERFACE
|
|
|
|
src
|
2022-03-12 02:45:35 +01:00
|
|
|
${CMAKE_BINARY_DIR}/src
|
2022-03-11 23:12:10 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(tests)
|