-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
25 lines (18 loc) · 979 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
cmake_minimum_required(VERSION 2.8.3)
project(AutoCircle_generater)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs geometry_msgs message_generation)
## Add in message and service files
add_message_files(FILES raven_automove.msg ravenstate.msg)
## Generate added messages and services
generate_messages(DEPENDENCIES std_msgs geometry_msgs)
## Declare a catkin package
catkin_package(CATKIN_DEPENDS message_runtime)
## Build talker and listeneri
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(talkerAutoCircle src/talker.cpp src/Raven_Controller.cpp src/Raven_PathPlanner.cpp)
target_link_libraries(talkerAutoCircle ${catkin_LIBRARIES})
add_dependencies(talkerAutoCircle AutoCircle_test_generate_messages_cpp)
add_executable(listenerAutoCircle src/listener.cpp)
target_link_libraries(listenerAutoCircle ${catkin_LIBRARIES})
add_dependencies(listenerAutoCircle AutoCircle_test_generate_messages_cpp)