This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
64 lines (51 loc) · 1.96 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
cmake_minimum_required( VERSION 2.8 )
project( rgbd_slam_tutor2_sophus )
set( CMAKE_BUILD_TYPE Release )
#set( CMAKE_CXX_COMPILER "clang++" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -ggdb -std=c++11 -march=native -O3 -pthread" )
list( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules )
find_package( OpenCV REQUIRED )
find_package( Eigen3 REQUIRED )
find_package( PCL 1.7 REQUIRED )
find_package( G2O )
find_package(VTK REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package( Cholmod )
include_directories( ${CHOLMOD_INCLUDE_DIR} )
find_package(catkin REQUIRED COMPONENTS roscpp cv_bridge sensor_msgs cmake_modules message_generation)
add_service_files(
FILES
rgbd_receive.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp sensor_msgs
)
include_directories(SYSTEM ${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib )
set(g2o_libs
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_core.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_types_slam3d.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_solver_csparse.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_stuff.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_csparse_extension.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_types_sim3.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/lib/libg2o_types_sba.so
)
include_directories(
${PROJECT_SOURCE_DIR}/
${PROJECT_SOURCE_DIR}/include/
${PROJECT_SOURCE_DIR}/Thirdparty/
${PROJECT_SOURCE_DIR}/Thirdparty/sophus/
${PROJECT_SOURCE_DIR}/Thirdparty/g2o_modified/
${EIGEN3_INCLUDE_DIR}
)
add_subdirectory( ${PROJECT_SOURCE_DIR}/src/ )
add_subdirectory( ${PROJECT_SOURCE_DIR}/experiment/ )