Skip to content

Commit

Permalink
(catkin.cmake) install src directory for custom iob, see start-jsk/rt…
Browse files Browse the repository at this point in the history
…mros_gazebo#35 for discussion
  • Loading branch information
k-okada committed Jun 11, 2014
1 parent 8afb574 commit 1f1c531
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion catkin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/installed)
endif(_make_failed)
endif()

# copy src
execute_process(
COMMAND cmake -E make_directory ${PROJECT_SOURCE_DIR}/src/
RESULT_VARIABLE _make_failed)
if (_make_failed)
message(FATAL_ERROR "make_directory ${PROJECT_SOURCE_DIR}/src failed: ${_make_failed}")
endif(_make_failed)
execute_process(
COMMAND cmake -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/build/hrpsys-base-source/rtc/ ${PROJECT_SOURCE_DIR}/src/rtc
RESULT_VARIABLE _make_failed)
message("copy src directory ${CATKIN_DEVEL_PREFIX}/build/hrpsys-base-source/ ${PROJECT_SOURCE_DIR}/src")
if (_make_failed)
message(FATAL_ERROR "copy src failed: ${_make_failed}")
endif(_make_failed)

message("openhrp3_SOURCE_DIR=${openhrp3_SOURCE_DIR}")
message(" openhrp3_PREFIX=${openhrp3_PREFIX}")
file(GLOB _conf_files "${PROJECT_SOURCE_DIR}/share/hrpsys/samples/*/*.conf" "${PROJECT_SOURCE_DIR}/share/hrpsys/samples/*/*.xml")
Expand Down Expand Up @@ -176,7 +191,7 @@ install(
install(DIRECTORY lib/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/lib
USE_SOURCE_PERMISSIONS)
install(DIRECTORY test share samples
install(DIRECTORY test share samples src
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)

Expand Down

0 comments on commit 1f1c531

Please sign in to comment.