forked from osrf/capabilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
71 lines (60 loc) · 2.31 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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(
INCLUDE_DIRS include
CATKIN_DEPENDS bondcpp roscpp
)
## Install scripts
catkin_install_python(PROGRAMS scripts/capability_server
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY include/capabilities/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")
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)
find_package(catkin REQUIRED COMPONENTS bondcpp roscpp)
include_directories(include ${catkin_INCLUDE_DIRS})
add_rostest_gtest(capabilities_client_test
test/rostest/test_client/test_client_cpp.test
test/rostest/test_client/test_client_module.cpp
)
target_link_libraries(capabilities_client_test ${catkin_LIBRARIES})
add_dependencies(capabilities_client_test ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
endif()