forked from robotology/event-driven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 loc) · 1.31 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: Arren Glover
# CopyPolicy: Released under the terms of the GNU GPL v2.0.
cmake_minimum_required(VERSION 2.6)
set(CONTEXT_DIR eventdriven)
set(PROJECTNAME icub-event-driven)
project(${PROJECTNAME})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing -std=c++11 -fPIC")
set(EVENTDRIVENLIBS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/libraries/include)
set(EVENTDRIVEN_LIBRARIES eventdriven)
option(USE_QTCREATOR "Add apps/drivers to QtCreator IDE" OFF)
#YARP
find_package(YARP REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpInstallationHelpers)
#ICUBCONTRIB
find_package(ICUBcontrib)
if(ICUBcontrib_FOUND)
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
include(ICUBcontribOptions)
include(ICUBcontribHelpers)
icubcontrib_set_default_prefix()
else(ICUBcontrib_FOUND)
message("Warning: ICUBcontrib not found. Make Install may not install to the correct location")
endif(ICUBcontrib_FOUND)
add_subdirectory(libraries)
add_subdirectory(src)
add_subdirectory(bindings)
if(USE_QTCREATOR)
file(GLOB tutorialfiles documentation/*.md)
add_custom_target(README_token SOURCES README.md ${tutorialfiles})
endif(USE_QTCREATOR)
icubcontrib_add_uninstall_target() #macro added 13/11/2013