-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
52 lines (42 loc) · 1.57 KB
/
Copy pathCMakeLists.txt
File metadata and controls
52 lines (42 loc) · 1.57 KB
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
cmake_minimum_required(VERSION 2.8.3)
project(youbot_network_estopper)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
########### ROS ###########
find_package(catkin REQUIRED COMPONENTS rosconsole roscpp geometry_msgs brics_actuator)
find_package(Boost REQUIRED COMPONENTS thread date_time filesystem system regex)
###################################################
## Declare things to be passed to other projects ##
###################################################
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES YouBotDriver soem
CATKIN_DEPENDS rosconsole
)
###########
## Build ##
###########
## Specify additional locations of header files
include_directories(
# include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
link_directories(
${catkin_LIBRARY_DIRS}
)
add_definitions(-DUSE_ROS_LOGGING)
set(CMAKE_BUILD_TYPE Release)
#copy header files
#install(DIRECTORY include/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h"
#)
add_executable(youbot_network_estopper src/YoubotNetworkEstopper.cpp)
target_link_libraries(youbot_network_estopper ${catkin_LIBRARIES})
add_executable(heartbeat_generator src/HeartbeatGenerator.cpp)
target_link_libraries(heartbeat_generator ${catkin_LIBRARIES})