-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
70 lines (58 loc) · 1.85 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
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required(VERSION 3.0.2)
project(car_demo)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
set (PRIUSCUP_MAJOR_VERSION 0)
set (PRIUSCUP_MINOR_VERSION 1)
set (PRIUSCUP_PATCH_VERSION 0)
set (PRIUSCUP_VERSION_FULL ${PRIUSCUP_MAJOR_VERSION}.${PRIUSCUP_MINOR_VERSION}.${PRIUSCUP_PATCH_VERSION})
find_package(catkin REQUIRED COMPONENTS
gazebo_ros
message_generation
std_msgs
sensor_msgs
geometry_msgs
nav_msgs
image_geometry
cv_bridge
rospy
)
find_package(gazebo 11 REQUIRED)
find_package(ignition-msgs5 REQUIRED)
find_package(OpenCV REQUIRED)
add_message_files(
FILES
Control.msg
LaneCoefficients.msg
Trajectory.msg
ControlDebug.msg
Objects.msg
TrafficLightStatus.msg
TrafficLightControl.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
nav_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES car_demo
CATKIN_DEPENDS gazebo_ros message_runtime std_msgs
# DEPENDS system_lib
)
include_directories(include ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS} ${SDFormat_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
add_library(PriusHybridPlugin SHARED plugins/PriusHybridPlugin.cc)
target_link_libraries(PriusHybridPlugin ${GAZEBO_LIBRARIES} ${IGNITION-MSGS_LIBRARIES})
add_dependencies(PriusHybridPlugin ${catkin_EXPORTED_TARGETS})
catkin_install_python(PROGRAMS nodes/vehicle_control_gui
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(TARGETS PriusHybridPlugin
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY models DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY worlds DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY meshes DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})