-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
40 lines (32 loc) · 1012 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
37
38
39
40
cmake_minimum_required(VERSION 2.8.3)
project(slam_karto_sesync)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
cmake_modules
message_filters
nav_msgs
open_karto
rosconsole
roscpp
sensor_msgs
geometry_msgs
tf
visualization_msgs
)
add_subdirectory(${PROJECT_SOURCE_DIR}/SESync)
find_package(Eigen3 3.3 REQUIRED)
include_directories(
include/${PROJECT_NAME}
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp message_filters nav_msgs open_karto rosconsole roscpp sensor_msgs geometry_msgs tf visualization_msgs
DEPENDS Eigen3
)
add_executable(slam_karto_sesync src/slam_karto_sesync.cpp src/SESyncSolver.cpp src/SESyncOptimizer.cpp)
target_link_libraries(slam_karto_sesync SESync roptlib ${BLAS_LIBRARIES} ${CHOLMOD_LIBRARIES} ${SPQR_LIBRARIES} ${LAPACK} ${catkin_LIBRARIES})
#install(TARGETS slam_karto_sesync
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
#)