20 lines
429 B
CMake
20 lines
429 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(lander C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
include_directories(crow/include include)
|
|
add_subdirectory(crow)
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "^Test")
|
|
enable_testing()
|
|
add_subdirectory(test)
|
|
else()
|
|
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
add_compile_options(-O3 -flto)
|
|
endif()
|
|
|
|
add_executable(lander src/main.cpp src/trie/trie.c)
|
|
endif()
|