File: CMakeLists.txt

package info (click to toggle)
ros-geometry2 0.6.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,544 kB
  • sloc: cpp: 10,475; python: 1,069; xml: 270; sh: 20; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 885 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 2.8.3)
project(geometry-experimental)
add_subdirectory( tf2_msgs )
add_subdirectory( tf2 )
add_subdirectory( tf2_py )
add_subdirectory( tf2_ros)
add_subdirectory( tf2_bullet )
add_subdirectory( tf2_eigen )
add_subdirectory( tf2_geometry_msgs )
add_subdirectory( tf2_kdl )
add_subdirectory( tf2_sensor_msgs )
add_subdirectory( tf2_tools )

include(ExternalProject)
ExternalProject_Add(tf2_py_python3
    SOURCE_DIR ${CMAKE_SOURCE_DIR}/tf2_py
    INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/tf2_py_python3
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -DPYTHON_VERSION=3 -DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/devel/
    INSTALL_COMMAND make DESTDIR=${CMAKE_CURRENT_BINARY_DIR}/tf2_py_python3 install
)
add_dependencies(tf2_py_python3 tf2)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tf2_py_python3/${CMAKE_INSTALL_PREFIX}/ DESTINATION ".")