-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (37 loc) · 1.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
# Copyright: Universidad Carlos III de Madrid (C) 2022
# Authors:
# CopyPolicy: Released under the terms of the
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_GET_GRASPING_POSES 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.2 REQUIRED COMPONENTS OS)
# Soft dependencies.
find_package(Doxygen QUIET)
find_package(GTestSources 1.6.0 QUIET)
find_package(PCL REQUIRED)
# Add WITH_PLUGINS if this projects exports YARP devices.
yarp_configure_external_installation(teo-get_grasping_poses)
# Retrieve current TEO_GET_GRASPING_POSES version.
include(TEO_GET_GRASPING_POSESVersion)
# Define standard paths, check system configuration.
include(TEO_GET_GRASPING_POSESSystem)
# Setup build options.
include(TEO_GET_GRASPING_POSESOptions)
# Define and enter subdirectories.
add_subdirectory(cmake)
add_subdirectory(libraries)
add_subdirectory(programs)
add_subdirectory(share)
# Output configuration files.
include(TEO_GET_GRASPING_POSESDescribe)
# Invoke CPack from here.
include(TEO_GET_GRASPING_POSESPackage)
# Generate a report of enabled/disabled features.
feature_summary(WHAT ALL)