-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (32 loc) · 1.4 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
# YARP middleware test units ( using Robot Testing Framework)
# Copyright: (C) 2017 iCub Facility, Istituto Italiano di Tecnologia
# Authors: Alberto Cardellino <[email protected]>
#
# Copy Policy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
#
cmake_minimum_required(VERSION 2.8.9)
project(yarp-tests)
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
set (CMAKE_CXX_STANDARD 11)
find_package(YARP COMPONENTS OS dev pcl math REQUIRED)
include_directories(${CMAKE_SOURCE_DIR}
${RTF_INCLUDE_DIRS}
${YARP_INCLUDE_DIRS}
${YARP_HELPERS_INCLUDE_DIR})
# find a version of RTF higher then 1.0.1
# and with yarp support enabled
find_package(RTF 1.3.3 COMPONENTS DLL REQUIRED)
find_package(PCL)
# set the output plugin directory to collect all the shared libraries
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
set(CMAKE_SHARED_MODULE_PREFIX "")
# options
option(YARP_TESTS_USES_ROS "Turn on to compile the tests that rely on 'ROS' external dependency" OFF)
option(ENABLE_BROKEN_TESTS "Turn on to compile known broken tests" OFF)
# Build main tests
add_subdirectory(src)
add_subdirectory(noRTF)
# Build examples: skeleton of tipical YARP test to be used when writing new tests
# add_subdirectory(example/cpp)
# Build optional tests that rely on external dependencies
# add_subdirectory(external)