Skip to content

Commit 873ca8d

Browse files
committed
change name to cpptrees
1 parent 7ef7fa2 commit 873ca8d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ HunterGate(
1010
SHA1 "put-archive-sha1-here"
1111
)
1212

13-
project(tree)
13+
project(cpptrees)
1414

15-
option(TREE_DISABLE_TESTING "dont build tests")
15+
option(CPPTREES_ENABLE_TESTING "dont build tests" ON)
1616

1717
hunter_add_package(mpark_variant)
1818

1919
find_package(mpark_variant CONFIG REQUIRED)
2020

21-
add_library(tree INTERFACE)
22-
target_link_libraries(tree INTERFACE mpark_variant)
23-
target_include_directories(tree INTERFACE
21+
add_library(cpptrees INTERFACE)
22+
target_link_libraries(cpptrees INTERFACE mpark_variant)
23+
target_include_directories(cpptrees INTERFACE
2424
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
2525
$<INSTALL_INTERFACE:include>)
2626

27-
if(NOT TREE_DISABLE_TESTING)
27+
if(CPPTREES_ENABLE_TESTING)
2828
enable_testing()
2929
add_subdirectory(test)
3030
endif()

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endif()
1515
function(gen_test name)
1616
add_executable(${name} ${name}.cpp)
1717
#set_target_properties(${name} PROPERTIES COMPILE_FLAGS "${cxx_strict}")
18-
target_link_libraries(${name} tree)
18+
target_link_libraries(${name} cpptrees)
1919
add_test(${name} ${name})
2020
endfunction(gen_test)
2121

0 commit comments

Comments
 (0)