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 $ $ PRIVATE src )