-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
51 lines (45 loc) · 896 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(world_creator)
set(TF_PLUGIN tf_plugin)
set(CMAKE_CXX_STANDARD 17)
# Find other CMake/Catkin packages needed for build
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
gazebo_ros
)
find_package(gazebo REQUIRED)
# Specify package build info export
catkin_package(
DEPENDS
roscpp
gazebo_ros
)
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(
include
plugins
${Boost_INCLUDE_DIR}
${GAZEBO_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
# Libraries/Executables to build
add_library(${TF_PLUGIN}
plugins/traffic_light.cpp
)
target_link_libraries(${TF_PLUGIN}
${catkin_LIBRARIES}
${CAR_INTERFACE_PLUGIN}
)
# Install
install(
TARGETS
${TF_PLUGIN}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(
DIRECTORY
launch
rviz
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)