forked from ross-desmond/xacro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
32 lines (24 loc) · 946 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(xacro)
find_package(catkin REQUIRED roslint)
catkin_python_setup()
catkin_package(
CFG_EXTRAS xacro-extras.cmake
)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
catkin_python_setup()
catkin_install_python(PROGRAMS scripts/xacro
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
## For backwards compatibility we also install as xacro.py
# The roslaunch $(find ...) expects the script to be in the package directory,
# and in catkin the package direcory is /share.
install(PROGRAMS xacro.py DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
if(CATKIN_ENABLE_TESTING)
## Add folders to be run by python nosetests
catkin_add_nosetests(test)
## add tests for xacro's cmake functions
add_subdirectory(test)
endif()
roslint_python()