-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCMakeLists.txt
90 lines (70 loc) · 2.54 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
cmake_minimum_required(VERSION 2.8.3)
project(autonomous_bicycle)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
sensor_msgs
tf
nav_msgs
visualization_msgs
gazebo_ros
dynamic_reconfigure
message_generation
)
add_service_files(
DIRECTORY srv
FILES
record_msg.srv
status_msg.srv
calibration_msg.srv
turn_off_msg.srv
)
generate_dynamic_reconfigure_options(cfg/bicycle_interaction.cfg
cfg/pose_estimation_interaction.cfg
)
add_message_files(
DIRECTORY msg
FILES
EKF_variables.msg
bicycle_state.msg
calibration_status.msg
)
generate_messages(DEPENDENCIES std_msgs)
catkin_package(DEPENDS CATKIN DEPENDS dynamic_reconfigure message_runtime std_msgs )
# Depend on system install of Gazebo
find_package(gazebo REQUIRED)
catkin_package(
INCLUDE_DIRS include
LIBRARIES autonomous_bicycle
CATKIN_DEPENDS roscpp rospy std_msgs geometry_msgs sensor_msgs message_runtime
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib )
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
add_library(bicycle_interaction src/gazebo_plugins/bicycle_interaction.cpp)
target_link_libraries(bicycle_interaction gazebo_ros_utils ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES})
add_library(link_odometry src/gazebo_plugins/link_odometry.cpp)
target_link_libraries(link_odometry gazebo_ros_utils ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES})
add_library(gazebo_ros_utils src/gazebo_plugins/gazebo_ros_utils.cpp)
target_link_libraries(gazebo_ros_utils ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_executable(OdometryUtmToLocal src/OdometryUtmToLocal.cpp)
target_link_libraries(OdometryUtmToLocal ${Boost_LIBRARIES} ${catkin_LIBRARIES})
install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)