-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
71 lines (56 loc) · 2.43 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2016-2020, Thomas Moulard, Olivier Stasse, Guilhem Saurel, JRL,
# CNRS/AIST, LAAS-CNRS
#
cmake_minimum_required(VERSION 3.1)
# Project properties
set(PROJECT_ORG stack-of-tasks)
set(PROJECT_NAME sot-talos)
set(PROJECT_DESCRIPTION "dynamic-graph package for Talos robot")
set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
# Project options
option(SUFFIX_SO_VERSION "Suffix library name with its version" ON)
# Project configuration
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(CUSTOM_HEADER_DIR "sot/talos")
set(CXX_DISABLE_WERROR TRUE)
# JRL-cmakemodule setup
include(cmake/base.cmake)
include(cmake/boost.cmake)
include(cmake/ros.cmake)
# Project definition
compute_project_args(PROJECT_ARGS LANGUAGES CXX C)
project(${PROJECT_NAME} ${PROJECT_ARGS})
# Project dependencies
set(CATKIN_REQUIRED_COMPONENTS roscpp std_msgs)
set(CATKIN_DEPENDS_LIBRARIES ros_bridge sot_loader)
add_project_dependency(dynamic-graph-python 4.0.6 REQUIRED)
add_project_dependency(sot-dynamic-pinocchio REQUIRED)
add_project_dependency(dynamic_graph_bridge REQUIRED)
add_project_dependency(roscpp REQUIRED)
add_project_dependency(talos_data REQUIRED)
add_project_dependency(pyrene-motions REQUIRED)
add_required_dependency(dynamic_graph_bridge_msgs)
find_package(catkin REQUIRED COMPONENTS ${CATKIN_REQUIRED_COMPONENTS})
add_subdirectory(src)
foreach(py_filename kinetalos katana_holding)
configure_file(${PROJECT_SOURCE_DIR}/tests/${py_filename}.py.in
${PROJECT_BINARY_DIR}/tests/${py_filename}.py)
install(FILES ${PROJECT_BINARY_DIR}/tests/${py_filename}.py
DESTINATION share/${PROJECT_NAME}/tests)
endforeach(py_filename)
# Configure files using motions from pyrene-motions package
foreach(py_filename appli-test-simple-seq-play)
configure_file(${PROJECT_SOURCE_DIR}/tests/${py_filename}.py.in
${PROJECT_BINARY_DIR}/tests/${py_filename}.py)
install(FILES ${PROJECT_BINARY_DIR}/tests/${py_filename}.py
DESTINATION share/${PROJECT_NAME}/tests)
endforeach(py_filename)
# Install python files starting the application
foreach(py_filename test-simple-seq-play)
install(FILES ${PROJECT_SOURCE_DIR}/tests/${py_filename}.py
DESTINATION share/${PROJECT_NAME}/tests)
endforeach(py_filename)
install(FILES ${PROJECT_SOURCE_DIR}/tests/test.py
${PROJECT_SOURCE_DIR}/tests/appli.py
DESTINATION share/${PROJECT_NAME}/tests)
install(FILES package.xml DESTINATION share/${PROJECT_NAME})