lander/CMakeLists.txt

21 lines
478 B
CMake

cmake_minimum_required(VERSION 3.20)
project(lander C CXX)
set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 17)
include_directories(include trie/include)
add_subdirectory(crow)
add_subdirectory(trie)
if(CMAKE_BUILD_TYPE MATCHES "^Test")
enable_testing()
else()
if(CMAKE_BUILD_TYPE STREQUAL Release)
add_compile_options(-O3 -flto)
endif()
add_executable(lander src/main.cpp src/entry.c)
target_link_libraries(lander PUBLIC Crow::Crow trie)
endif()