Skip to content

Commit

Permalink
set CMAKE_BUILD_TYPE to install, also support RelWithDebInfo for deb …
Browse files Browse the repository at this point in the history
…release
  • Loading branch information
k-okada committed Oct 12, 2014
1 parent 6061434 commit f2d8f85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions hrpsys_gazebo_general/catkin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ pkg_check_modules(openhrp3 openhrp3.1 REQUIRED)
pkg_check_modules(collada_urdf_jsk_patch collada_urdf_jsk_patch)
catkin_package(CATKIN_DEPENDS hrpsys_ros_bridge hrpsys_gazebo_msgs)

# set CMAKE_BUILD_TYPE
if(NOT CMAKE_BUILD_TYPE)
set(
CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
endif()

## Build only gazebo iob
find_package(PkgConfig)
pkg_check_modules(omniorb omniORB4 REQUIRED)
Expand Down Expand Up @@ -73,3 +81,4 @@ add_custom_target(all_robots_compile ALL DEPENDS ${compile_urdf_robots})
## install
install(DIRECTORY launch scripts worlds config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SOURCE_PERMISSIONS)
install(PROGRAMS setup.sh DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

4 changes: 2 additions & 2 deletions hrpsys_gazebo_general/iob/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ set_target_properties(hrpEC_gazebo PROPERTIES COMPILE_DEFINITIONS "OPENRTM_VERSI


install(TARGETS RobotHardwareComp_gazebo RobotHardware_gazebo hrpEC_gazebo hrpIo_gazebo
RUNTIME DESTINATION bin CONFIGURATIONS Release Debug
LIBRARY DESTINATION lib CONFIGURATIONS Release Debug
RUNTIME DESTINATION bin CONFIGURATIONS Release Debug RelWithDebInfo
LIBRARY DESTINATION lib CONFIGURATIONS Release Debug RelWithDebInfo
)


Expand Down

0 comments on commit f2d8f85

Please sign in to comment.