forked from osrf/capabilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (46 loc) · 1.66 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 3.0.2)
project(capabilities)
find_package(catkin REQUIRED COMPONENTS message_generation std_msgs std_srvs)
catkin_python_setup()
add_message_files(FILES
Capability.msg
CapabilityEvent.msg
CapabilitySpec.msg
Remapping.msg
RunningCapability.msg
)
add_service_files(FILES
EstablishBond.srv
GetCapabilitySpec.srv
FreeCapability.srv
GetCapabilitySpecs.srv
GetInterfaces.srv
GetNodeletManagerName.srv
GetProviders.srv
GetRemappings.srv
GetRunningCapabilities.srv
GetSemanticInterfaces.srv
StartCapability.srv
StopCapability.srv
UseCapability.srv
)
generate_messages(DEPENDENCIES std_msgs std_srvs)
catkin_package()
## Install scripts
install(PROGRAMS scripts/capability_server
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
catkin_add_nosetests(test)
add_rostest(test/rostest/test_client/test_client_module.test)
add_rostest(test/rostest/test_launch_manager/test_launch_manager.test)
add_rostest(test/rostest/test_server/test_client.test)
add_rostest(test/rostest/test_server/test_default_provider.test)
add_rostest(test/rostest/test_server/test_dependent_capabilities.test)
add_rostest(test/rostest/test_server/test_invalid_specs.test)
add_rostest(test/rostest/test_server/test_package_white_black_lists.test)
add_rostest(test/rostest/test_server/test_remapping.test)
add_rostest(test/rostest/test_server/test_ros_services.test)
add_rostest(test/rostest/test_server/test_white_black_lists.test)
add_rostest(test/rostest/test_service_discovery/test_spec_index_from_service.test)
endif()