source: flair-src/trunk/demos/OpticalFlow/uav/CMakeLists.txt@ 299

Last change on this file since 299 was 299, checked in by Sanahuja Guillaume, 3 years ago

cleanup for out of source build

File size: 1.3 KB
Line 
1PROJECT(OpticalFlow)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5if(NOT "${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "armv5te")
6
7SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
8SET(FLAIR_USE_FILTER TRUE)
9SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
10SET(FLAIR_USE_VISION_FILTER TRUE)
11SET(FLAIR_USE_META TRUE)
12
13include(${FLAIR_USE_FILE})
14
15SET(SRC_FILES
16 src/main.cpp
17 src/DemoOpticalFlow.cpp
18)
19
20INCLUDE_DIRECTORIES(
21 ${FLAIR_INCLUDE_DIR}
22)
23
24#real time executable
25ADD_EXECUTABLE(${PROJECT_NAME}_rt
26 ${SRC_FILES}
27)
28
29TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT})
30
31#non real time executable
32ADD_EXECUTABLE(${PROJECT_NAME}_nrt
33 ${SRC_FILES}
34)
35
36TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
37
38INSTALL(
39 TARGETS ${PROJECT_NAME}_rt
40 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
41)
42
43INSTALL(
44 TARGETS ${PROJECT_NAME}_nrt
45 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
46)
47
48else()
49 if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
50 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
51 else()
52 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
53 endif()
54endif()
Note: See TracBrowser for help on using the repository browser.