-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
136 lines (122 loc) · 3.41 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
cmake_minimum_required(VERSION 3.0.2)
project(demo_lidar)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(catkin REQUIRED COMPONENTS
roscpp
tf
)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
find_package(cv_bridge REQUIRED)
find_package(SuiteSparse REQUIRED)
find_package(Cholmod REQUIRED)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES demo_lidar
# CATKIN_DEPENDS roscpp
# DEPENDS system_lib
)
include_directories(
include
/usr/include/suitesparse/
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${cv_bridge_INCLUDE_DIRS}
${SuiteSparse_INCLUDE_DIRS}
${Cholmod_INCLUDES}
)
add_library(libisam
isamlib/Anchor.cpp
isamlib/Cholesky.cpp
isamlib/ChowLiuTree.cpp
isamlib/covariance.cpp
isamlib/Covariances.cpp
isamlib/glc.cpp
isamlib/GLCReparam.cpp
isamlib/Node.cpp
isamlib/numericalDiff.cpp
isamlib/Optimizer.cpp
isamlib/OrderedSparseMatrix.cpp
isamlib/Slam.cpp
isamlib/SparseMatrix.cpp
isamlib/SparseSystem.cpp
isamlib/SparseVector.cpp
isamlib/util.cpp
)
target_link_libraries(libisam
${CHOLMOD_LIBRARIES})
add_executable(featureTracking src/featureTracking.cpp)
target_link_libraries(featureTracking
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(visualOdometry src/visualOdometry.cpp)
target_link_libraries(visualOdometry
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(bundleAdjust src/bundleAdjust.cpp)
target_link_libraries(bundleAdjust
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(processDepthmap src/processDepthmap.cpp)
target_link_libraries(processDepthmap
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(stackDepthPoint src/stackDepthPoint.cpp)
target_link_libraries(stackDepthPoint
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(transformMaintenance src/transformMaintenance.cpp)
target_link_libraries(transformMaintenance
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)
add_executable(registerPointCloud src/registerPointCloud.cpp)
target_link_libraries(registerPointCloud
#/usr/local/lib/libisam.a
libisam
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${cv_bridge_LIBRARIES}
${SuiteSparse_LIBRARIES}
)