source: flair-src/trunk/demos/MixedReality/real/simulator/CMakeLists.txt@ 297

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

going to out of source build

File size: 1.0 KB
Line 
1PROJECT(MixedReality_simulator_real)
2cmake_minimum_required(VERSION 2.8)
3
4SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
5SET(FLAIR_USE_SIMULATOR TRUE)
6SET(FLAIR_USE_SIMULATOR_GL TRUE)
7
8include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
9include(${FLAIR_USE_FILE})
10
11if("${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "core2-64")
12
13SET(SRC_FILES
14 src/main.cpp
15)
16
17INCLUDE_DIRECTORIES(
18 ${FLAIR_INCLUDE_DIR}
19)
20
21#real time executable
22ADD_EXECUTABLE(${PROJECT_NAME}_rt
23 ${SRC_FILES}
24)
25
26TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT})
27
28#non real time executable
29ADD_EXECUTABLE(${PROJECT_NAME}_nrt
30 ${SRC_FILES}
31)
32
33TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
34
35else()
36 if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
37 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
38 else()
39 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
40 endif()
41endif()
Note: See TracBrowser for help on using the repository browser.