-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (25 loc) · 954 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.0)
project(wsjcpp-obj-tree C CXX)
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-obj-tree_SOURCE_DIR})
# include header dirs
list (APPEND WSJCPP_INCLUDE_DIRS "src")
list (APPEND WSJCPP_INCLUDE_DIRS "src/examples")
list (APPEND WSJCPP_SOURCES "./src/wsjcpp_obj_tree.h")
list (APPEND WSJCPP_SOURCES "./src/wsjcpp_obj_tree.cpp")
list (APPEND WSJCPP_SOURCES "src/main.cpp")
# examples
list (APPEND WSJCPP_SOURCES "./src/examples/wsjcpp_obj_tree_node_building.h")
list (APPEND WSJCPP_SOURCES "./src/examples/wsjcpp_obj_tree_node_building.cpp")
#### BEGIN_WSJCPP_APPEND
#### END_WSJCPP_APPEND
include_directories(${WSJCPP_INCLUDE_DIRS})
add_executable (wsjcpp-obj-tree ${WSJCPP_SOURCES})
target_link_libraries(wsjcpp-obj-tree ${WSJCPP_LIBRARIES})
install(
TARGETS
wsjcpp-obj-tree
RUNTIME DESTINATION
/usr/bin
)