-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
39 lines (26 loc) · 1.25 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
# requires minimum cmake version
cmake_minimum_required(VERSION 3.5)
# produce the cmake var PROJECT_NAME
project(event-saccadic-suppression)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
# mandatory use of these packages
find_package(YARP 3.1.101 REQUIRED COMPONENTS OS sig)
find_package(ICUB REQUIRED)
find_package(ICUBcontrib REQUIRED)
# extend the current search path used by cmake to load helpers
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
# helpers defining certain macros
include(ICUBcontribHelpers)
include(ICUBcontribOptions)
# specify to install in $ICUBcontrib_DIR/bin
icubcontrib_set_default_prefix()
# includes @ ICUBCONTIRB_INSTALL_PREFIX/include/
include_directories(${ICUB_INCLUDE_DIRS})
add_executable(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/src/event-saccadic-suppression.h
${CMAKE_SOURCE_DIR}/src/event-saccadic-suppression.cpp)
# libraries @ ICUBCONTRIB_INSTALL_PREFIX/lib/libeventdriven.a
target_link_libraries(${PROJECT_NAME} ${YARP_LIBRARIES} ${ICUB_LIBRARIES})
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
icubcontrib_add_uninstall_target()
file(GLOB scripts ${CMAKE_SOURCE_DIR}/app/scripts/*.xml)
yarp_install(FILES ${scripts} DESTINATION ${ICUBCONTRIB_APPLICATIONS_INSTALL_DIR})