forked from RobotWebTools/rosbridge_suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (48 loc) · 1.13 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
50
51
52
53
54
55
cmake_minimum_required(VERSION 2.8.3)
project(rosbridge_library)
find_package(catkin REQUIRED COMPONENTS message_generation std_msgs geometry_msgs)
# Generate messages for testing (NOINSTALL)
add_message_files(
FILES
Num.msg
TestChar.msg
TestDurationArray.msg
TestHeaderArray.msg
TestHeader.msg
TestHeaderTwo.msg
TestTimeArray.msg
TestUInt8.msg
TestUInt8FixedSizeArray16.msg
NOINSTALL
)
# Generate services for testing (NOINSTALL)
add_service_files(
FILES
AddTwoInts.srv
SendBytes.srv
TestArrayRequest.srv
TestEmpty.srv
TestMultipleRequestFields.srv
TestMultipleResponseFields.srv
TestNestedService.srv
TestRequestAndResponse.srv
TestRequestOnly.srv
TestResponseOnly.srv
NOINSTALL
)
catkin_python_setup()
# Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(
CATKIN_DEPENDS message_runtime std_msgs geometry_msgs
)
# Test launch files
if (CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest(test/capabilities/test_capabilities.test)
add_rostest(test/internal/test_internal.test)
endif()