-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
104 lines (92 loc) · 3.03 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
cmake_minimum_required(VERSION 3.22)
project(shishandaimaViewer VERSION 1.0)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
include_directories(external/imgui)
include_directories(external/imgui/backends)
include_directories(src)
file(GLOB addressableInfo "src/addressableInfo/*.cpp" "src/addressableInfo/*.h")
file(GLOB animation "src/animation/*.h" "src/animation/*.cpp")
file(GLOB antlr "src/antlr/*.h" "src/antlr/*.cpp" "src/antlr/*/*.h" "src/antlr/*/*.cpp")
file(GLOB error "src/error/*.cpp" "src/error/*.h")
file(GLOB fileManager "src/file/*.cpp" "src/file/*.h")
file(GLOB hotkey "src/hotkey/*.cpp" "src/hotkey/*.h")
file(GLOB ikdtree "src/ikdTree/*.h" "src/ikdTree/*.cpp")
file(GLOB prologUtil "src/prolog/*.cpp" "src/prolog/*.h")
file(GLOB resource "src/res/*.h" "src/res/*.cpp")
file(GLOB runtime "src/runtime/*.h" "src/runtime/*.cpp" "src/runtime/*/*.h" "src/runtime/*/*.cpp")
file(GLOB simpleView "src/simpleView/*.h" "src/simpleView/*.cpp" "src/simpleView/*/*.h" "src/simpleView/*/*.cpp")
file(GLOB customThree "src/threepp/custom/*.h" "src/threepp/custom/*.cpp")
file(GLOB util "src/util/*.h" "src/util/*.cpp")
file(GLOB otherFile "src/*.cpp" "src/*.h")
file(GLOB imgui
"external/imgui/*.h"
"external/imgui/*.cpp"
"external/imgui/backends/imgui_impl_glfw.h"
"external/imgui/backends/imgui_impl_glfw.cpp"
"external/imgui/backends/imgui_impl_opengl3.h"
"external/imgui/backends/imgui_impl_opengl3.cpp")
add_executable(${PROJECT_NAME}
${error}
${fileManager}
${addressableInfo}
${prologUtil}
${util}
${imgui}
${runtime}
${antlr}
${customThree}
${simpleView}
${otherFile}
${hotkey}
${resource}
${animation}
${ikdtree}
)
add_subdirectory(external/antlr4/runtime/Cpp)
add_subdirectory(external/swipl)
add_subdirectory(external/threepp)
add_subdirectory(external/re2)
add_subdirectory(external/igraph)
add_subdirectory(external/spdlog)
target_include_directories(${PROJECT_NAME}
PUBLIC external/antlr4/runtime/Cpp/runtime/src
PUBLIC external/swipl/packages/cpp
PUBLIC external/threepp/include
PUBLIC external/re2
PUBLIC external/igraph/include
PUBLIC external/spdlog/include
)
target_link_directories(${PROJECT_NAME}
PRIVATE external/antlr4/runtime/Cpp/runtime
PRIVATE external/swipl/src
PRIVATE external/threepp/src
PRIVATE external/re2
PRIVATE external/igraph/src
PRIVATE external/spdlog
)
target_link_libraries(${PROJECT_NAME}
antlr4_static
libswipl
threepp
re2
igraph
spdlog
${PCL_LIBRARIES}
)
add_dependencies(${PROJECT_NAME}
antlr4_static
libswipl
threepp
re2
igraph
spdlog
)
add_custom_target(delete_data
COMMAND rm -fr data
COMMAND mkdir data
COMMAND mkdir data/prolog
COMMAND mkdir data/prolog/addressable
COMMAND mkdir data/prolog/unaddressable
)