-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
47 lines (39 loc) · 924 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 2.8.3)
project(dmp_sawyer)
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(catkin REQUIRED COMPONENTS
intera_core_msgs
std_msgs
cmake_modules
roscpp
rospy
message_generation
)
find_package(Eigen REQUIRED)
add_message_files(
FILES
DMPData.msg
DMPPoint.msg
DMPTraj.msg
)
add_service_files(
FILES
GetDMPPlan.srv
LearnDMPFromDemo.srv
SetActiveDMP.srv
)
generate_messages()
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS common_msgs image_common message_runtime
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Eigen_INCLUDE_DIRS}
)
add_library(dmp_sawyer src/dmp.cpp src/fourier_approx.cpp src/radial_approx.cpp src/linear_approx.cpp)
add_executable(dmp_sawyer_server nodes/dmp_server.cpp)
target_link_libraries(dmp_sawyer_server dmp_sawyer ${catkin_LIBRARIES} ${Eigen_LIBRARIES})