-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
109 lines (91 loc) · 2.71 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cmake_minimum_required(VERSION 3.0.2)
project(tf_demo)
## 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
ddynamic_reconfigure
geometry_msgs
roscpp
roslint
rospy
tf2_geometry_msgs
tf2_ros
visualization_msgs
)
set(ROSLINT_CPP_OPTS "--extensions=cpp,h,hpp" "--filter=-whitespace/braces,-runtime/references")
roslint_cpp()
set(ROSLINT_PYTHON_OPTS "--ignore=W503" "1>&2")
roslint_python()
## 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 specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
INCLUDE_DIRS include
# LIBRARIES rqt_dr_single
CATKIN_DEPENDS
ddynamic_reconfigure
geometry_msgs
roscpp
tf2_ros
visualization_msgs
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(old_tf_to_new_tf
src/old_tf_to_new_tf.cpp
)
target_link_libraries(old_tf_to_new_tf ${catkin_LIBRARIES})
add_executable(tf_extrapolation_exception
src/tf_extrapolation_exception.cpp
)
target_link_libraries(tf_extrapolation_exception ${catkin_LIBRARIES})
add_executable(tf_to_pose
src/tf_to_pose.cpp
)
target_link_libraries(tf_to_pose ${catkin_LIBRARIES})
add_executable(echo
src/echo.cpp
)
target_link_libraries(echo ${catkin_LIBRARIES})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(TARGETS
old_tf_to_new_tf
tf_to_pose
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(PROGRAMS
scripts/buffer_core_demo.py
scripts/dueling_transforms.py
scripts/flip_flop.py
scripts/flyer.py
scripts/old_tf_to_new_tf.py
scripts/tf_path.py
scripts/tf_to_pose.py
scripts/tf_tree.py
scripts/tracking_arm.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
foreach(dir launch)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach()