forked from cmower/dmp-ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (52 loc) · 1.26 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
cmake_minimum_required(VERSION 3.0.2)
project(dmp)
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(catkin REQUIRED COMPONENTS
cmake_modules
roscpp
rospy
message_generation
custom_ros_tools
)
find_package(Eigen REQUIRED)
catkin_python_setup()
add_message_files(
FILES
DMPData.msg
DMPPoint.msg
DMPTraj.msg
)
add_service_files(
FILES
GetDMPPlan.srv
LearnDMPFromDemo.srv
SetActiveDMP.srv
)
generate_messages(
DEPENDENCIES
)
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 src/dmp.cpp src/fourier_approx.cpp src/radial_approx.cpp src/linear_approx.cpp)
add_executable(dmp_server nodes/dmp_server.cpp)
add_dependencies(dmp
${catkin_EXPORTED_TARGETS}
dmp_gencpp
dmp_generate_messages
dmp_generate_messages_cpp
dmp_generate_messages_py
dmp_generate_messages_lisp)
target_link_libraries(dmp_server dmp ${catkin_LIBRARIES} ${Eigen_LIBRARIES})
catkin_install_python(PROGRAMS
scripts/example_dmp.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)