-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
50 lines (39 loc) · 1.36 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
cmake_minimum_required(VERSION 2.8.3)
project(spline_problems)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUILD_TYPE Release)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
eigen_conversions
cmake_modules
)
find_package(Eigen REQUIRED)
# catkin_python_setup()
catkin_package(
INCLUDE_DIRS include
# LIBRARIES spline_problems
# CATKIN_DEPENDS other_catkin_pkg
DEPENDS Eigen
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Eigen_INCLUDE_DIRS}
)
## Declare a C++ library
# add_library(${PROJECT_NAME}
# src/${PROJECT_NAME}/spline_problems.cpp
# )
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_executable(min_jerk src/min_jerk.cpp)
add_executable(tri_acc_profile src/tri_acc_profile.cpp)
add_executable(adaptive_s_curve_profile src/adaptive_s_curve_profile.cpp)
add_executable(easy_s_curve src/easy_s_curve.cpp)
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
target_link_libraries(min_jerk ${catkin_LIBRARIES} -lpython2.7)
target_link_libraries(tri_acc_profile ${catkin_LIBRARIES} -lpython2.7)
target_link_libraries(adaptive_s_curve_profile ${catkin_LIBRARIES} -lpython2.7)
target_link_libraries(easy_s_curve ${catkin_LIBRARIES} -lpython2.7)