forked from asmodehn/celeros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (32 loc) · 1.11 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
cmake_minimum_required(VERSION 2.8.3)
project(celeros)
# Minimal Python module setup
find_package(catkin REQUIRED COMPONENTS roslint rospy actionlib_msgs dynamic_reconfigure)
catkin_python_setup()
# make sure configure headers are built before any node using them
#add_dependencies(rostful ${${PROJECT_NAME}_EXPORTED_TARGETS})
catkin_package()
# Install executable scripts
install(DIRECTORY scripts/
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
USE_SOURCE_PERMISSIONS)
# Lint Python modules
file(GLOB_RECURSE ${PROJECT_NAME}_PY_SCRIPTS
RELATIVE ${PROJECT_SOURCE_DIR} scripts/*)
file(GLOB_RECURSE ${PROJECT_NAME}_PY_SRCS
RELATIVE ${PROJECT_SOURCE_DIR} src/*.py)
roslint_python(${${PROJECT_NAME}_PY_SCRIPTS}
${${PROJECT_NAME}_PY_SRCS})
install(DIRECTORY migrations/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/migrations
)
install(DIRECTORY interactions/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/interactions
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
## Unit tests
if (CATKIN_ENABLE_TESTING)
add_subdirectory(tests)
endif()