-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
85 lines (72 loc) · 2.45 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
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 2.8.3)
set(CXX_DISABLE_WERROR TRUE)
set(PROJECT_NAME agimus_demos)
set(PROJECT_DESCRIPTION "Demonstration of Agimus with various robots")
set(PROJECT_URL "https://github.com/agimus/agimus-demos")
set(PROJECT_USE_CMAKE_EXPORT TRUE)
include(cmake/base.cmake)
include(cmake/test.cmake)
include(cmake/python.cmake)
compute_project_args(PROJECT_ARGS LANGUAGES CXX)
project(${PROJECT_NAME} ${PROJECT_ARGS})
add_project_dependency (dynamic-graph-python 4 REQUIRED)
add_project_dependency (dynamic_graph_bridge 3 REQUIRED)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roslaunch
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES agimus_demos
# CATKIN_DEPENDS roslaunch
# DEPENDS system_lib
)
find_package(Eigen3)
MACRO(INSTALL_DEMO_LAUNCH_FILES DEMO)
set(options)
set(oneValueArgs)
set(multiValueArgs LAUNCHFILES SCRIPTS)
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
FILE(RELATIVE_PATH robot ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
MESSAGE(STATUS "Add demonstration ${robot}/${DEMO}")
FOREACH (launch_file ${ARG_LAUNCHFILES})
install(FILES
${DEMO}/${launch_file}
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
RENAME ${robot}_${DEMO}_${launch_file}
)
ENDFOREACH ()
FOREACH (script_file ${ARG_SCRIPTS})
install(PROGRAMS "${DEMO}/${script_file}"
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
RENAME ${robot}_${DEMO}_${script_file})
ENDFOREACH ()
ENDMACRO()
ADD_SUBDIRECTORY(talos)
ADD_SUBDIRECTORY(tiago)
ADD_SUBDIRECTORY(ur10)
add_subdirectory(src)
add_subdirectory(tests)
# Install other files with the same hierarchy as here.
install(DIRECTORY talos tiago urdf srdf meshes worlds
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
FILES_MATCHING
PATTERN "*"
PATTERN "*.launch" EXCLUDE
)
INSTALL(FILES plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(PROGRAMS
scripts/gazebo_object_to_tf.py
scripts/visual_tag_initializer.py
scripts/calibration_frames_grabber.py
scripts/publish_constants.py
scripts/group_of_tags.py
scripts/publishwmc.py
scripts/publish_camera_extrinsics.py
scripts/rqt_tooltip_calibration
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts)