-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (40 loc) · 1.73 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
# Copyright (C) 2006-2018 Istituto Italiano di Tecnologia (IIT)
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.
cmake_minimum_required(VERSION 3.5)
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.8)
cmake_policy(SET CMP0067 NEW)
endif()
# RPATH cmake policy set to NEW
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.9)
cmake_policy(SET CMP0068 NEW)
endif()
# Run automoc on generated files
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.10)
cmake_policy(SET CMP0071 NEW)
endif()
project(Yarp-SmartSoft-Integration
VERSION 0.0.1
LANGUAGES C CXX)
set(PROJECT_DESCRIPTION "Libraries and tools for Yarp-smartsoft integration")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find YARP. Point the YARP_DIR environment variable at your build.
find_package(YARP 3.0.0 REQUIRED)
find_package(AceSmartSoft REQUIRED)
find_package(Doxygen)
yarp_configure_external_installation(${PROJECT_NAME})
message(STATUS "Using:")
message(STATUS " CMake: ${CMAKE_VERSION} (${CMAKE_COMMAND})")
message(STATUS " C Compiler: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} (${CMAKE_C_COMPILER})")
message(STATUS " CXX Compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CMAKE_CXX_COMPILER})")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
include(YarpDoc)
add_subdirectory(integration)
option(COMPILE_examples "Compile examples" OFF)