Index: trunk/demos/MixedReality/real/simulator/CMakeLists.txt
===================================================================
--- trunk/demos/MixedReality/real/simulator/CMakeLists.txt	(revision 301)
+++ trunk/demos/MixedReality/real/simulator/CMakeLists.txt	(revision 302)
@@ -2,11 +2,8 @@
 cmake_minimum_required(VERSION 2.8)
 
-SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
 SET(FLAIR_USE_SIMULATOR TRUE)
 SET(FLAIR_USE_SIMULATOR_GL TRUE)
-SET(COPY_RESOURCE_FILES true)
 
-include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
-include(${FLAIR_USE_FILE})
+include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
 
 if("${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "core2-64")
@@ -16,30 +13,7 @@
 )
 
-INCLUDE_DIRECTORIES(
-	${FLAIR_INCLUDE_DIR}
-)
-
-#real time executable
-ADD_EXECUTABLE(${PROJECT_NAME}_rt
-	${SRC_FILES}
-)
-
-TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT})
-
-#non real time executable
-ADD_EXECUTABLE(${PROJECT_NAME}_nrt
-	${SRC_FILES}
-)
-
-TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
-
-INSTALL(
-	TARGETS ${PROJECT_NAME}_rt
-	RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
-)
-
-INSTALL(
-	TARGETS ${PROJECT_NAME}_nrt
-	RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
+FLAIR_DEMO(${PROJECT_NAME} "${SRC_FILES}"
+           DEST_DIR MixedReality_real
+           COPY_RESOURCES
 )
 
Index: trunk/demos/MixedReality/real/simulator/resources/core2-64/simulator_x4.sh
===================================================================
--- trunk/demos/MixedReality/real/simulator/resources/core2-64/simulator_x4.sh	(revision 301)
+++ trunk/demos/MixedReality/real/simulator/resources/core2-64/simulator_x4.sh	(revision 302)
@@ -6,5 +6,5 @@
 fi
 
-. $FLAIR_ROOT/flair-dev/scripts/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
-$EXEC -p 9000 -a 127.0.0.1 -x simulator_x4.xml -o 10 -m $FLAIR_ROOT/flair-bin/models -s $FLAIR_ROOT/flair-bin/models/indoor_flight_arena.xml
+$EXEC -p 9000 -a 127.0.0.1 -x simulator_x4.xml -o 10 -m $FLAIR_ROOT/flair-src/models -s $FLAIR_ROOT/flair-src/models/indoor_flight_arena.xml
Index: trunk/demos/MixedReality/real/uav/CMakeLists.txt
===================================================================
--- trunk/demos/MixedReality/real/uav/CMakeLists.txt	(revision 301)
+++ trunk/demos/MixedReality/real/uav/CMakeLists.txt	(revision 302)
@@ -2,5 +2,4 @@
 cmake_minimum_required(VERSION 2.8)
 
-SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
 SET(FLAIR_USE_FILTER TRUE)
 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
@@ -8,8 +7,5 @@
 SET(FLAIR_USE_META TRUE)
 SET(FLAIR_USE_VRPN TRUE)
-SET(COPY_RESOURCE_FILES true)
-
-include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
-include(${FLAIR_USE_FILE})
+include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
 
 SET(SRC_FILES
@@ -18,29 +14,6 @@
 )
 
-INCLUDE_DIRECTORIES(
-	${FLAIR_INCLUDE_DIR}
+FLAIR_DEMO(${PROJECT_NAME} "${SRC_FILES}"
+           DEST_DIR MixedReality_real
+           COPY_RESOURCES
 )
-
-#real time executable
-ADD_EXECUTABLE(${PROJECT_NAME}_rt
-	${SRC_FILES}
-)
-
-TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT})
-
-#non real time executable
-ADD_EXECUTABLE(${PROJECT_NAME}_nrt
-	${SRC_FILES}
-)
-
-TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
-
-INSTALL(
-	TARGETS ${PROJECT_NAME}_rt
-	RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
-)
-
-INSTALL(
-	TARGETS ${PROJECT_NAME}_nrt
-	RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
-)
Index: trunk/demos/MixedReality/real/uav/resources/core2-64/x4.sh
===================================================================
--- trunk/demos/MixedReality/real/uav/resources/core2-64/x4.sh	(revision 301)
+++ trunk/demos/MixedReality/real/uav/resources/core2-64/x4.sh	(revision 302)
@@ -7,5 +7,5 @@
 fi
 
-. $FLAIR_ROOT/flair-dev/scripts/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
 $EXEC -a 127.0.0.1 -p 9000 -l /tmp -x setup_x4.xml -t x4_simu0 -v 127.0.0.1:3884
