forked from ZebraDevs/fetch_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (32 loc) · 916 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
cmake_minimum_required(VERSION 2.8.3)
project(fetch_ikfast_plugin)
find_package(catkin REQUIRED COMPONENTS
moveit_core
pluginlib
roscpp
tf_conversions
)
if(${moveit_core_VERSION_MINOR} GREATER 8)
add_compile_options(-std=c++11)
endif()
include_directories(${catkin_INCLUDE_DIRS})
catkin_package(
LIBRARIES
CATKIN_DEPENDS
moveit_core
pluginlib
roscpp
tf_conversions
)
include_directories(include)
set(IKFAST_LIBRARY_NAME fetch_arm_moveit_ikfast_plugin)
find_package(LAPACK REQUIRED)
add_library(${IKFAST_LIBRARY_NAME} src/fetch_arm_ikfast_moveit_plugin.cpp)
target_link_libraries(${IKFAST_LIBRARY_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${LAPACK_LIBRARIES})
install(TARGETS ${IKFAST_LIBRARY_NAME} LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(
FILES
fetch_arm_moveit_ikfast_plugin_description.xml
DESTINATION
${CATKIN_PACKAGE_SHARE_DESTINATION}
)