forked from desperad066/DistributedMapping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 1.15 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
project(use_kitti)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11 -O2")
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
# Eigen
include_directories("/usr/include/eigen3")
# sophus
#find_package(Sophus REQUIRED)
#include_directories(${Sophus_INCLUDE_DIRS})
# g2o
find_package(G2O REQUIRED)
include_directories(${G2O_INCLUDE_DIRS})
aux_source_directory(./src SRC_FILES)
include_directories(./include)
add_executable(kitti
src/kitti.cpp
src/kitticlass.cpp)
set_target_properties(kitti PROPERTIES OUTPUT_NAME kitti${EXE_POSTFIX})
target_link_libraries(kitti ${Sophus_LIBRARIES}
g2o_core g2o_stuff g2o_types_slam3d ${CHOLMOD_LIBRARIES})
add_executable(sphere src/sphere.cpp)
set_target_properties(sphere PROPERTIES OUTPUT_NAME sphere${EXE_POSTFIX})
target_link_libraries(sphere ${Sophus_LIBRARIES}
g2o_core g2o_stuff g2o_types_slam3d ${CHOLMOD_LIBRARIES})
add_executable(g2oToKitti
src/g2otoKitti.cpp
src/kitticlass.cpp)
set_target_properties(g2oToKitti PROPERTIES OUTPUT_NAME g2oToKitti${EXE_POSTFIX})
target_link_libraries(g2oToKitti ${Sophus_LIBRARIES}
g2o_core g2o_stuff g2o_types_slam3d ${CHOLMOD_LIBRARIES})