-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (44 loc) · 1.13 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
cmake_minimum_required(VERSION 3.0.2)
project(rover)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
urdf
std_msgs
geometry_msgs
message_generation
sensor_msgs
tf
nav_msgs
tf2_ros
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
xbox.msg
# Message2.msg
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs # Or other packages containing msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES rover
# CATKIN_DEPENDS urdf
# DEPENDS system_lib
)
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(motor_controller src/motor_controller.cpp)
target_link_libraries(motor_controller ${catkin_LIBRARIES})
add_executable(rover_xbox src/rover_xbox.cpp)
target_link_libraries(rover_xbox ${catkin_LIBRARIES})
add_executable(xbox_joy src/xbox_joy.cpp)
target_link_libraries(xbox_joy ${catkin_LIBRARIES})