forked from jsk-ros-pkg/jsk_smart_apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (40 loc) · 2.01 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
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Append to CPACK_SOURCE_IGNORE_FILES a semicolon-separated list of
# directories (or patterns, but directories should suffice) that should
# be excluded from the distro. This is not the place to put things that
# should be ignored everywhere, like "build" directories; that happens in
# rosbuild/rosbuild.cmake. Here should be listed packages that aren't
# ready for inclusion in a distro.
#
# This list is combined with the list in rosbuild/rosbuild.cmake. Note
# that CMake 2.6 may be required to ensure that the two lists are combined
# properly. CMake 2.4 seems to have unpredictable scoping rules for such
# variables.
#list(APPEND CPACK_SOURCE_IGNORE_FILES /core/experimental)
rosbuild_make_distribution(0.1.0)
rosbuild_find_ros_package(android_core)
rosbuild_find_ros_package(turtlebot_android)
rosbuild_find_ros_package(pr2_android_utilities)
set(android_gingerbread_mr1_path "${android_core_PACKAGE_PATH}/android_gingerbread_mr1")
set(android_honeycomb_mr2_path "${android_core_PACKAGE_PATH}/android_honeycomb_mr2")
set(turtlebot_core_components_path "${turtlebot_android_PACKAGE_PATH}/turtlebot_android_core_components")
set(pr2_core_components_path "${pr2_android_utilities_PACKAGE_PATH}/pr2_android_core_components")
if(android_core_PACKAGE_PATH)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
${android_gingerbread_mr1_path} "${PROJECT_SOURCE_DIR}/android_gingerbread_mr1"
)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
${android_honeycomb_mr2_path} "${PROJECT_SOURCE_DIR}/android_honeycomb_mr2"
)
endif()
if(turtlebot_android_PACKAGE_PATH)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
${turtlebot_core_components_path} "${PROJECT_SOURCE_DIR}/turtlebot_android_core_components"
)
endif()
if(pr2_android_utilities_PACKAGE_PATH)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
${pr2_core_components_path} "${PROJECT_SOURCE_DIR}/pr2_android_core_components"
)
endif()