-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
42 lines (33 loc) · 1.11 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
# Copyright: (C) 2015 iCub Facility - Istituto Italiano di Tecnologia
# Authors: Ugo Pattacini
# CopyPolicy: Released under the terms of the GNU GPL v2.0.
cmake_minimum_required(VERSION 3.5)
project(icub-basic-demos)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED 11)
set(BUILD_BUNDLE ON)
option(BUILD_FORCECONTROL "Build Force Control Demo (Qt5 is required)" ON)
option(BUILD_FORCEIMITATION "Build Force Imitation Demo" ON)
option(BUILD_REDBALL "Build Red-Ball Demo (OpenCV > 2.0 is required)" ON)
option(BUILD_YOGA "Build Yoga Demo" ON)
find_package(ICUBcontrib REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
include(ICUBcontribOptions)
include(ICUBcontribHelpers)
icubcontrib_set_default_prefix()
if (BUILD_FORCECONTROL)
add_subdirectory(demoForceControl)
endif()
if (BUILD_FORCEIMITATION)
add_subdirectory(demoForceImitation)
endif()
if (BUILD_REDBALL)
add_subdirectory(demoRedBall)
add_subdirectory(pf3dTracker)
add_subdirectory(pf3dBottomup)
endif()
if (BUILD_YOGA)
add_subdirectory(demoYoga)
endif()
icubcontrib_add_uninstall_target()