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

Last change on this file was 365, checked in by Sanahuja Guillaume, 20 months ago

change simu apps compilation to avoid problem with mixing host and toolchain libs
(log2@glibc_2.29 error when compiling on ubuntu 20.05 or mint 20)
now compile with host g++ and libs (except filelib, irrlicht, quat, udt and vrpn) for simu apps using the macro: FLAIR_DEMO_HOST_CXX

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