Skip to content

Commit c2ed297

Browse files
committed
Added cmake buildfile
1 parent f969e0b commit c2ed297

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(flat-tree)
4+
5+
add_library(flat-tree INTERFACE)
6+
target_include_directories(flat-tree INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/..)
7+
install(FILES index.hxx DESTINATION include/flat-tree)
8+
9+
include(CTest)
10+
if(BUILD_TESTING)
11+
add_executable(flat-tree-test test/index.cxx)
12+
target_link_libraries(flat-tree-test flat-tree)
13+
add_test(NAME flat-tree COMMAND flat-tree-test)
14+
endif()

0 commit comments

Comments
 (0)