-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (28 loc) · 1.08 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
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
# Define a project.
project(ASIBOT_CONFIGURATION_FILES LANGUAGES NONE)
# Load custom CMake modules.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# Find dependencies
find_package(YCM 0.11 REQUIRED)
find_package(YARP 3.2 REQUIRED)
# Set some useful variables - paths relative to the installation prefix.
yarp_configure_external_installation(asibot-configuration-files)
# Traverse subdirectories.
add_subdirectory(share)
add_subdirectory(scripts)
# Store the package in the user registry.
set(CMAKE_EXPORT_PACKAGE_REGISTRY ON)
# Create and install config files.
include(InstallBasicPackageFiles)
install_basic_package_files(ASIBOT_CONFIGURATION_FILES
VERSION 0.1.0
COMPATIBILITY AnyNewerVersion
NO_EXPORT)
# Configure and install desktop shortcut.
if(UNIX)
include(DesktopShortcutHelpers)
configure_and_install_desktop_shortcut(${CMAKE_SOURCE_DIR}/cmake/templates/asibot-apps.desktop.in)
endif()
# Add uninstall rule.
include(AddUninstallTarget)