-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 876 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
cmake_minimum_required(VERSION 3.0.2)
project(internship_task)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
# Get the information about this package's buildtime dependencies
find_package(catkin REQUIRED COMPONENTS
std_msgs
roscpp
)
# Actually generate the language-specific message and service files
# generate_messages(DEPENDENCIES std_msgs sensor_msgs)
# Declare that this catkin package's runtime dependencies
catkin_package(
CATKIN_DEPENDS std_msgs
)
include_directories(${catkin_INCLUDE_DIRS})
# define executable using MyMessage1 etc.
add_executable(sample_node src/internship_sample.cpp)
add_dependencies(sample_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(sample_node ${catkin_LIBRARIES})