-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (24 loc) · 1.03 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
cmake_minimum_required(VERSION 2.8.3)
project(wecook_assets)
find_package(catkin REQUIRED)
catkin_package()
find_package(openrave_catkin QUIET)
if(${openrave_catkin_FOUND})
add_custom_target(${PROJECT_NAME}_data ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${PROJECT_SOURCE_DIR}/data"
"${OpenRAVE_DEVEL_DIR}/${OpenRAVE_DATA_DIR}"
)
# The trailing slash is necessary to prevent CMake from creating a "data"
# directory inside DESTINATION.
# See: http://www.cmake.org/cmake/help/v3.0/command/install.html
install(DIRECTORY "${PROJECT_SOURCE_DIR}/data/"
DESTINATION "${OpenRAVE_INSTALL_DIR}/${OpenRAVE_DATA_DIR}"
)
install(DIRECTORY "${PROJECT_SOURCE_DIR}/data/"
DESTINATION "${CATKIN_PACKAGE_SHARE_DESTINATION}/data"
)
else(${openrave_catkin_FOUND})
message(AUTHOR_WARNING "Unable to find openrave_catkin. You will have to manually"
" add these models to your OpenRAVE_DATA path.")
endif(${openrave_catkin_FOUND})