-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (50 loc) · 2.04 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
# Copyright: Universidad Carlos III de Madrid (C) 2022
# 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_CHECK_COLLISIONS 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(YCM 0.11 REQUIRED)
find_package(YARP 3.4 REQUIRED COMPONENTS os dev)
find_package(ROBOTICSLAB_KINEMATICS_DYNAMICS REQUIRED)
find_package(fcl 0.6.0 REQUIRED)
find_package(Eigen3 CONFIG REQUIRED)
# 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-check-collisions)
# Retrieve current CHECK_TEO_COLLISIONS version.
include(TEO_CHECK_COLLISIONSVersion)
# Define standard paths, check system configuration.
include(TEO_CHECK_COLLISIONSSystem)
# Setup build options.
include(TEO_CHECK_COLLISIONSOptions)
# 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_CHECK_COLLISIONSDescribe)
# Invoke CPack from here.
include(TEO_CHECK_COLLISIONSPackage)
# Create and install config files.
include(InstallBasicPackageFiles)
install_basic_package_files(TEO_CHECK_COLLISIONS
VERSION 0.1.0
COMPATIBILITY AnyNewerVersion
NO_SET_AND_CHECK_MACRO
NO_CHECK_REQUIRED_COMPONENTS_MACRO
NAMESPACE ROBOTICSLAB::
DEPENDENCIES ${_exported_dependencies})
# Generate a report of enabled/disabled features.
feature_summary(WHAT ALL)