lander/CMakeLists.txt

20 lines
429 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
include_directories(crow/include include)
2022-11-15 16:05:47 +01:00
add_subdirectory(crow)
2022-11-15 16:21:27 +01:00
if(CMAKE_BUILD_TYPE MATCHES "^Test")
enable_testing()
add_subdirectory(test)
else()
if(CMAKE_BUILD_TYPE STREQUAL Release)
add_compile_options(-O3 -flto)
endif()
2022-11-15 16:05:47 +01:00
add_executable(lander src/main.cpp src/trie/trie.c)
endif()