source: flair-src/trunk/demos/MixedReality/real/simulator/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(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
35INSTALL(
36 TARGETS ${PROJECT_NAME}_rt
37 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
38)
39
40INSTALL(
41 TARGETS ${PROJECT_NAME}_nrt
42 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
43)
44
45else()
46 if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
47 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
48 else()
49 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
50 endif()
51endif()
52
Note: See TracBrowser for help on using the repository browser.