-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
100 lines (88 loc) · 1.9 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
cmake_minimum_required(VERSION 3.0.2)
project(tams_pr2_guzheng)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED COMPONENTS
actionlib
actionlib_msgs
audio_common_msgs
bio_ik
cv_bridge
dynamic_reconfigure
geometry_msgs
moveit_msgs
moveit_ros_planning_interface
music_perception
nav_msgs
rviz_visual_tools
sensor_msgs
sr_robot_msgs
std_msgs
tf2_ros
trajectory_msgs
)
catkin_python_setup()
find_package(backward_ros QUIET)
generate_dynamic_reconfigure_options(
cfg/Offsets.cfg
cfg/Threshold.cfg
cfg/TimeOffset.cfg
cfg/StringFitter.cfg
)
add_action_files(
DIRECTORY
action
FILES
ExecutePath.action
PlayPiece.action
RunEpisode.action
)
add_message_files(
DIRECTORY
msg
FILES
ActionParameters.msg
BiotacStamped.msg
ChordophoneEstimation.msg
CQTStamped.msg
EpisodeState.msg
ExpressiveRange.msg
NoteDynamics.msg
NoteOnset.msg
PluckEpisodeV1.msg
PluckEpisodeV2.msg
RunEpisodeRequest.msg
TactilePluck.msg
ChordophoneString.msg
)
generate_messages(
DEPENDENCIES
actionlib_msgs
audio_common_msgs
geometry_msgs
moveit_msgs
music_perception
nav_msgs
sr_robot_msgs
trajectory_msgs
)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
)
# this package consists of one-file examples only
function(one_filer name)
add_executable(${PROJECT_NAME}_${name} src/${name}.cpp)
add_dependencies(${PROJECT_NAME}_${name} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_${name} ${catkin_LIBRARIES})
set_target_properties(${PROJECT_NAME}_${name} PROPERTIES OUTPUT_NAME ${name} PREFIX "")
install(TARGETS ${PROJECT_NAME}_${name}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
endfunction()
one_filer(alternate_poses)
one_filer(detect_pluck)
one_filer(stop_on_contact)
one_filer(pluck_from_path)
one_filer(feel_string)