-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (39 loc) · 1.11 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
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
cmake_minimum_required(VERSION 2.8.3)
project(cnbiros_core)
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs message_generation)
SET(CMAKE_BUILD_TYPE RelWithDebInfo)
include_directories(${catkin_INCLUDE_DIRS}
include)
add_service_files(
FILES
SetStateSrv.srv
SetRateSrv.srv
GetRateSrv.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
${PROJECT_NAME}
CATKIN_DEPENDS
roscpp
message_runtime
)
add_library(cnbiros_core
src/Publishers.cpp
src/Subscribers.cpp
src/NodeInterface.cpp
)
add_dependencies(cnbiros_core cnbiros_core_generate_messages_cpp)
target_link_libraries(cnbiros_core ${catkin_LIBRARIES})
add_executable(example_publishers examples/example_publishers.cpp)
target_link_libraries(example_publishers cnbiros_core)
add_executable(example_subscribers examples/example_subscribers.cpp)
target_link_libraries(example_subscribers cnbiros_core)
add_executable(example_nodeinterface examples/example_nodeinterface.cpp)
target_link_libraries(example_nodeinterface cnbiros_core)