lander/CMakeLists.txt

21 lines
478 B
CMake
Raw Normal View History

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)
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)
add_subdirectory(trie)
2022-11-15 16:21:27 +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)
target_link_libraries(lander PUBLIC Crow::Crow trie)
endif()