-
Notifications
You must be signed in to change notification settings - Fork 1
/
.launchtest.CMakeLists.txt
55 lines (47 loc) · 1.71 KB
/
.launchtest.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 2.8.3)
project(remote_monitor)
find_package(catkin REQUIRED COMPONENTS
roscpp
cv_bridge
geometry_msgs
nav_msgs
sensor_msgs
tf
waypoint_navigator
)
find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generate cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## 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 third_robot_monitor
CATKIN_DEPENDS roscpp cv_bridge geometry_msgs nav_msgs sensor_msgs tf waypoint_navigator
DEPENDS OpenCV Boost
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
)
add_executable(remote_monitor_server src/monitor_server.cpp)
add_dependencies(remote_monitor_server ${catkin_EXPORTED_TARGETS})
target_link_libraries(remote_monitor_server ${catkin_LIBRARIES} ${OpenCV_LIBS})
add_executable(remote_monitor_client src/monitor_client.cpp)
add_dependencies(remote_monitor_client ${catkin_EXPORTED_TARGETS})
target_link_libraries(remote_monitor_client ${catkin_LIBRARIES} ${OpenCV_LIBS})
##########
## Test ##
#########
find_package(roslaunch)
roslaunch_add_file_check(test/remote_monitor_client.test.xml)
roslaunch_add_file_check(test/remote_monitor_server.test.xml)
roslaunch_add_file_check(test/remote_monitor_server_gazebo.test.xml)