2022-11-15 16:21:27 +01:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
2022-11-15 16:05:47 +01:00
|
|
|
project(lander C CXX)
|
|
|
|
|
2022-11-27 20:20:09 +01:00
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2022-11-15 17:05:14 +01:00
|
|
|
|
2022-12-08 07:52:21 +01:00
|
|
|
include_directories(include trie/include)
|
2022-11-15 16:05:47 +01:00
|
|
|
add_subdirectory(crow)
|
2022-12-07 10:57:58 +01:00
|
|
|
add_subdirectory(trie)
|
2022-11-15 16:21:27 +01:00
|
|
|
|
2022-11-29 16:25:24 +01:00
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "^Test")
|
|
|
|
enable_testing()
|
|
|
|
else()
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
|
|
add_compile_options(-O3 -flto)
|
|
|
|
endif()
|
2022-11-15 16:05:47 +01:00
|
|
|
|
2022-12-08 07:52:21 +01:00
|
|
|
add_executable(lander src/main.cpp src/entry.c)
|
2022-12-07 12:29:37 +01:00
|
|
|
target_link_libraries(lander PUBLIC Crow::Crow trie)
|
2022-11-29 16:25:24 +01:00
|
|
|
endif()
|