|
| 1 | +cmake_minimum_required(VERSION 2.4.6) |
| 2 | +include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) |
| 3 | + |
| 4 | +# Set the build type. Options are: |
| 5 | +# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage |
| 6 | +# Debug : w/ debug symbols, w/o optimization |
| 7 | +# Release : w/o debug symbols, w/ optimization |
| 8 | +# RelWithDebInfo : w/ debug symbols, w/ optimization |
| 9 | +# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries |
| 10 | +#set(ROS_BUILD_TYPE RelWithDebInfo) |
| 11 | + |
| 12 | +#rosbuild_find_ros_package(actionlib_msgs) |
| 13 | +#include(${actionlib_msgs_PACKAGE_PATH}/cmake/actionbuild.cmake) |
| 14 | +#genaction() |
| 15 | + |
| 16 | +rosbuild_init() |
| 17 | + |
| 18 | +#set the default path for built executables to the "bin" directory |
| 19 | +set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) |
| 20 | +#set the default path for built libraries to the "lib" directory |
| 21 | +set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) |
| 22 | + |
| 23 | +#uncomment if you have defined messages |
| 24 | +#rosbuild_genmsg() |
| 25 | +#uncomment if you have defined services |
| 26 | +#rosbuild_gensrv() |
| 27 | + |
| 28 | +#common commands for building c++ executables and libraries |
| 29 | +#rospack_add_library(${PROJECT_NAME} src/example.cpp) |
| 30 | +#target_link_libraries(${PROJECT_NAME} another_library) |
| 31 | +#rospack_add_boost_directories() |
| 32 | +#rospack_link_boost(${PROJECT_NAME} thread) |
| 33 | +#rospack_add_executable(example examples/example.cpp) |
| 34 | +#target_link_libraries(example ${PROJECT_NAME}) |
| 35 | + |
| 36 | +# rostest |
| 37 | +#rosbuild_add_roslaunch_check(ros/launch/cob3-1.launch ROBOT=cob3-1) |
| 38 | +#rosbuild_add_roslaunch_check(ros/launch/cob3-2.launch ROBOT=cob3-2) |
| 39 | +#rosbuild_add_roslaunch_check(ros/launch/cob3-3.launch ROBOT=cob3-3) |
| 40 | + |
| 41 | +rosbuild_add_roslaunch_check(ros/launch/sim.launch ROBOT=cob3-3 ROBOT_ENV=ipa-kitchen) |
| 42 | + |
| 43 | +# Check whether there's an X display. Intended to use in gating tests that |
| 44 | +# require a display. |
| 45 | +rosbuild_check_for_display(disp) |
| 46 | + |
| 47 | +if(disp) |
| 48 | + rosbuild_add_rostest(ros/launch/sim.launch TIMEOUT 10.0) |
| 49 | +endif(disp) |
| 50 | + |
| 51 | + |
0 commit comments