-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
43 lines (36 loc) · 1.06 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(dji_m100_gazebo)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
set(CMAKE_CXX_STANDARD 14)
find_package(catkin REQUIRED COMPONENTS
gazebo_ros
rviz_visual_tools
)
find_package(gazebo REQUIRED)
catkin_package(
)
include_directories(
${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS}
)
link_directories(
${GAZEBO_LIRARY_DIRS} ${catkin_LIBRARY_DIRS}
)
add_executable(rviz_collision_publisher src/rviz_collision_publisher.cpp)
target_link_libraries(rviz_collision_publisher ${catkin_LIBRARIES})
install(TARGETS rviz_collision_publisher
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/
)
install(DIRECTORY worlds
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/
)
install(DIRECTORY models
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/
)
install(DIRECTORY rviz_cfg
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/
)