-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCMakeLists.txt
52 lines (38 loc) · 1.71 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 (C) 2019 Istituto Italiano di Tecnologia (IIT). All rights reserved.
# This software may be modified and distributed under the terms of the
# GNU Lesser General Public License v2.1 or any later version.
cmake_minimum_required(VERSION 3.5)
project(whole-body-estimators LANGUAGES CXX
VERSION 0.11.2)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
## avoid having M_PI error by importing math symbols from standard cmath
add_definitions(-D_USE_MATH_DEFINES)
# and export all symbols in Windows
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" ON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
option(ENABLE_RPATH "Enable RPATH for this library" ON)
mark_as_advanced(ENABLE_RPATH)
include(AddInstallRPATHSupport)
add_install_rpath_support(BIN_DIRS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}"
LIB_DIRS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}"
DEPENDS ENABLE_RPATH
USE_LINK_PATH)
set(YARP_REQUIRED_VERSION 3.0.1)
find_package(YARP ${YARP_REQUIRED_VERSION} REQUIRED COMPONENTS robotinterface idl_tools eigen os sig)
find_package(Eigen3 REQUIRED)
find_package(iDynTree 12.2.0 REQUIRED)
find_package(ICUB REQUIRED)
yarp_configure_plugins_installation(${PROJECT_NAME})
option(BUILD_TESTING "Create tests using CMake" OFF)
if(BUILD_TESTING)
find_package(Catch2 3.0.1 REQUIRED)
enable_testing()
endif()
add_subdirectory(libraries)
add_subdirectory(idl)
add_subdirectory(devices)
add_subdirectory(scripts)
include(AddUninstallTarget)