21 lines
458 B
CMake
21 lines
458 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(lander C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
include_directories(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)
|
|
target_link_libraries(lander PUBLIC Crow::Crow trie)
|
|
endif()
|