forked from MIT-SPARK/Kimera-VIO-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (49 loc) · 1.63 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
cmake_minimum_required(VERSION 2.8.3)
project(kimera_vio_ros)
find_package(catkin_simple REQUIRED)
### System Dependencies
find_package(Boost REQUIRED COMPONENTS
serialization system filesystem thread date_time regex timer chrono)
if(NOT TARGET Boost::boost)
add_library(Boost::boost INTERFACE IMPORTED)
set_target_properties(Boost::boost PROPERTIES
INTERFACE_LINK_LIBRARIES "${Boost_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}")
endif()
catkin_simple()
cs_add_library(${PROJECT_NAME}
# Include files are just here for IDEs
include/kimera_vio_ros/KimeraVioRos.h
include/kimera_vio_ros/RosBagDataProvider.h
include/kimera_vio_ros/RosDataProviderInterface.h
include/kimera_vio_ros/RosDisplay.h
include/kimera_vio_ros/RosOnlineDataProvider.h
include/kimera_vio_ros/RosPublishers.h
include/kimera_vio_ros/RosVisualizer.h
include/kimera_vio_ros/utils/UtilsRos.h
include/kimera_vio_ros/utils/CsvPublisher.h
src/KimeraVioRos.cpp
src/RosDataProviderInterface.cpp
src/RosBagDataProvider.cpp
src/RosOnlineDataProvider.cpp
src/RosDisplay.cpp
src/RosVisualizer.cpp
src/RosLoopClosureVisualizer.cpp
src/utils/UtilsRos.cpp
src/utils/CsvPublisher.cpp
)
target_link_libraries(${PROJECT_NAME} kimera_vio)
cs_add_executable(${PROJECT_NAME}_node
src/KimeraVioRosNode.cpp
)
target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME})
cs_add_executable(csv_publisher_node
src/utils/CsvPublisherNode.cpp
)
target_link_libraries(csv_publisher_node ${PROJECT_NAME})
catkin_add_gtest(testKimeraVioRos
test/testKimeraVioRos.cpp
)
target_link_libraries(testKimeraVioRos ${PROJECT_NAME})
cs_install()
cs_export()