We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f969e0b commit aa7940aCopy full SHA for aa7940a
CMakeLists.txt
@@ -0,0 +1,14 @@
1
+cmake_minimum_required(VERSION 3.10)
2
+
3
+project(flat-tree)
4
5
+add_library(${PROJECT_NAME} INTERFACE)
6
+target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/..)
7
+install(FILES index.hxx DESTINATION include/${PROJECT_NAME})
8
9
+include(CTest)
10
+if(BUILD_TESTING)
11
+ add_executable(${PROJECT_NAME}-test test/index.cxx)
12
+ target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
13
+ add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME}-test)
14
+endif()
0 commit comments