-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCMakeLists.txt
43 lines (34 loc) · 1.19 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
cmake_minimum_required(VERSION 2.8.3)
project(image_to_rviz)
set(CMAKE_CXX_FLAGS "-std=c++11 -march=native -DEIGEN_DONT_PARALLELIZE")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
visualization_msgs
dynamic_reconfigure
roslib
geometry_msgs
nav_msgs
)
find_package(OpenCV REQUIRED)
include_directories(
${catkin_INCLUDE_DIRS}
)
#add dynamic reconfigure api
#find_package(catkin REQUIRED dynamic_reconfigure)
generate_dynamic_reconfigure_options(
cfg/params.cfg
#...
)
catkin_package()
# make sure configure headers are built before any node using them
add_executable(image_to_rviz_node src/image_to_rviz_node.cpp)
add_dependencies(image_to_rviz_node ${PROJECT_NAME}_gencfg)
target_link_libraries(image_to_rviz_node ${catkin_LIBRARIES} ${OpenCV_LIBS})
add_executable(vins_image_to_rviz src/vins_image_to_rviz.cpp)
add_dependencies(vins_image_to_rviz ${PROJECT_NAME}_gencfg)
target_link_libraries(vins_image_to_rviz ${catkin_LIBRARIES} ${OpenCV_LIBS})
add_executable(vins_fusion_outdoor_img src/vins_fusion_outdoor_img.cpp)
add_dependencies(vins_fusion_outdoor_img ${PROJECT_NAME}_gencfg)
target_link_libraries(vins_fusion_outdoor_img ${catkin_LIBRARIES} ${OpenCV_LIBS})