forked from Research/WhisperCom
23 lines
566 B
CMake
23 lines
566 B
CMake
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
|
|
project (libtree VERSION 0.1.0 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
|
|
|
|
|
configure_file(${PROJECT_SOURCE_DIR}/src/config.hpp.in ${PROJECT_SOURCE_DIR}/src/config.hpp @ONLY)
|
|
|
|
|
|
add_library(tree STATIC
|
|
src/config.hpp
|
|
include/Tree/tree.hpp
|
|
src/Tree/tree.cpp
|
|
)
|
|
|
|
target_include_directories(tree PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:include>
|
|
PRIVATE src
|
|
)
|