forked from start-jsk/openhrp3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (22 loc) · 955 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
if(NOT USE_ROSBUILD)
include(catkin.cmake)
return()
endif()
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
rosbuild_init()
# Build OpenHRP3
rosbuild_find_ros_package(openrtm_aist)
set(ENV{PATH} "$ENV{PATH}:${openrtm_aist_PACKAGE_PATH}/bin:/opt/ros/$ENV{ROS_DISTRO}/lib/openrtm_aist/bin")
execute_process(COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.openhrp3 installed
RESULT_VARIABLE _make_failed)
if (_make_failed)
message(FATAL_ERROR "Build of OpenHRP3 failed")
endif(_make_failed)