diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ab47a3b --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.10) + +project(flat-tree) + +add_library(${PROJECT_NAME} INTERFACE) +target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/..) +install(FILES index.hxx DESTINATION include/${PROJECT_NAME}) + +include(CTest) +if(BUILD_TESTING) + add_executable(${PROJECT_NAME}-test test/index.cxx) + target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME}) + add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME}-test) +endif()