source: flair-src/trunk/demos/DemoOpticalFlow/uav/CMakeLists.txt @ 405

Last change on this file since 405 was 405, checked in by Sanahuja Guillaume, 6 months ago

adapt demos for clone demos script

File size: 803 bytes
Line 
1PROJECT(DemoOpticalFlow)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
4
5if(NOT "${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "armv5te")
6
7SET(FLAIR_USE_FILTER TRUE)
8SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
9SET(FLAIR_USE_VISION_FILTER TRUE)
10SET(FLAIR_USE_META TRUE)
11
12SET(SRC_FILES
13        src/main.cpp
14        src/DemoOpticalFlow.cpp
15)
16
17FLAIR_DEMO(${PROJECT_NAME} "${SRC_FILES}"
18           DEST_DIR DemoOpticalFlow
19           COPY_RESOURCES
20)
21
22else()
23    if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
24        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
25    else()
26        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
27    endif()
28endif()
Note: See TracBrowser for help on using the repository browser.