13 lines
304 B
CMake
13 lines
304 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(ternarytrie C)
|
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
|
|
add_library(ternarytrie STATIC src/ternarytrie.c)
|
|
|
|
target_include_directories(
|
|
ternarytrie PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
)
|
|
target_compile_options(ternarytrie PRIVATE -O3 -flto)
|