Last change
on this file since 293 was 293, checked in by Sanahuja Guillaume, 6 years ago |
folder reorganization
|
File size:
1.0 KB
|
Line | |
---|
1 | PROJECT(MixedReality_simulator_real)
|
---|
2 | cmake_minimum_required(VERSION 2.8)
|
---|
3 |
|
---|
4 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
5 | SET(FLAIR_USE_SIMULATOR TRUE)
|
---|
6 | SET(FLAIR_USE_SIMULATOR_GL TRUE)
|
---|
7 |
|
---|
8 | include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
9 | include(${FLAIR_USE_FILE})
|
---|
10 |
|
---|
11 | if("${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "core2-64")
|
---|
12 |
|
---|
13 | SET(SRC_FILES
|
---|
14 | ${CMAKE_SOURCE_DIR}/src/main.cpp
|
---|
15 | )
|
---|
16 |
|
---|
17 | INCLUDE_DIRECTORIES(
|
---|
18 | ${FLAIR_INCLUDE_DIR}
|
---|
19 | )
|
---|
20 |
|
---|
21 | #real time executable
|
---|
22 | ADD_EXECUTABLE(${PROJECT_NAME}_rt
|
---|
23 | ${SRC_FILES}
|
---|
24 | )
|
---|
25 |
|
---|
26 | TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT})
|
---|
27 |
|
---|
28 | #non real time executable
|
---|
29 | ADD_EXECUTABLE(${PROJECT_NAME}_nrt
|
---|
30 | ${SRC_FILES}
|
---|
31 | )
|
---|
32 |
|
---|
33 | TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
|
---|
34 |
|
---|
35 | else()
|
---|
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()
|
---|
41 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.