-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
70 lines (51 loc) · 1.95 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
# Copyright: Universidad Carlos III de Madrid (C) 2021
# Authors: Elisabeth Menendez
# CopyPolicy: Released under the terms of the LGPLv2.1 or later
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
# Start a project. Set the LANGUAGES option according to your
# needs, e.g. 'C', 'CXX', 'NONE'.
project(TEO_SHARON VERSION 0.1.0 LANGUAGES CXX)
# Set module path.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake
${CMAKE_SOURCE_DIR}/cmake/modules
${CMAKE_SOURCE_DIR}/cmake/find-modules)
# Hard dependencies.
find_package(YARP 3.4 REQUIRED COMPONENTS os dev)
find_package(YCM 0.11 REQUIRED)
find_package(ROBOTICSLAB_VISION REQUIRED)
find_package(OpenCV REQUIRED)
find_package(orocos_kdl 1.4 QUIET)
find_package(ROBOTICSLAB_KINEMATICS_DYNAMICS REQUIRED)
find_package(PCL REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Eigen REQUIRED eigen3)
pkg_check_modules(pkg_nlopt REQUIRED nlopt)
find_library(trac-ik NAMES trac_ik libtrac_ik)
# Soft dependencies.
find_package(Doxygen QUIET)
find_package(GTestSources 1.6.0 QUIET)
# Add WITH_PLUGINS if this projects exports YARP devices.
yarp_configure_external_installation(teo-sharon)
install(DIRECTORY models worlds
DESTINATION share/gazebo)
# Retrieve current TEO_SHARON version.
include(TEO_SHARONVersion)
# Define standard paths, check system configuration.
include(TEO_SHARONSystem)
# Setup build options.
include(TEO_SHARONOptions)
# Define and enter subdirectories.
add_subdirectory(cmake)
add_subdirectory(libraries)
add_subdirectory(programs)
add_subdirectory(tests)
add_subdirectory(share)
add_subdirectory(doc)
# Output configuration files.
include(TEO_SHARONDescribe)
# Invoke CPack from here.
include(TEO_SHARONPackage)
set(YARP_FORCE_DYNAMIC_PLUGINS TRUE CACHE INTERNAL "Force dynamic plugins")
yarp_configure_external_installation(teo-sharon WITH_PLUGINS)
# Generate a report of enabled/disabled features.
feature_summary(WHAT ALL)