-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
78 lines (70 loc) · 1.77 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
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 2.8.3)
project(app_manager)
find_package(catkin REQUIRED COMPONENTS
message_generation
message_runtime
rosgraph
roslaunch
rospy
rosunit
std_msgs
)
catkin_python_setup()
add_message_files(
FILES
AppList.msg
ClientApp.msg
AppInstallationState.msg
App.msg
KeyValue.msg
AppStatus.msg
ExchangeApp.msg
Icon.msg
StatusCodes.msg
)
add_service_files(
FILES
GetAppDetails.srv
ListApps.srv
UninstallApp.srv
InstallApp.srv
GetInstallationState.srv
StartApp.srv
StopApp.srv
)
generate_messages(
DEPENDENCIES std_msgs
)
catkin_package(
CATKIN_DEPENDS rospy roslaunch rosgraph rosunit
)
catkin_install_python(PROGRAMS bin/rosget bin/appmaster
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY launch test
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS
PATTERN *.py EXCLUDE)
file(GLOB_RECURSE TEST_FILES
RELATIVE "${PROJECT_SOURCE_DIR}"
"test/*.py")
foreach(TEST_FILE ${TEST_FILES})
get_filename_component(DIR ${TEST_FILE} DIRECTORY)
catkin_install_python(PROGRAMS ${TEST_FILE}
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${DIR})
endforeach()
file(GLOB SCRIPTS_FILES
RELATIVE "${PROJECT_SOURCE_DIR}"
"${PROJECT_SOURCE_DIR}/scripts/*")
catkin_install_python(PROGRAMS ${SCRIPTS_FILES}
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts)
if(CATKIN_ENABLE_TESTING)
find_package(rostest)
catkin_add_nosetests(test/test_app.py)
catkin_add_nosetests(test/test_app_list.py)
add_rostest(test/test_app.test)
add_rostest(test/test_plugin.test)
add_rostest(test/test_plugin_timeout.test)
add_rostest(test/test_plugin_success.test)
add_rostest(test/test_plugin_fail.test)
add_rostest(test/test_start_fail.test)
endif()