Index: trunk/demos/PidStandalone/simulator/CMakeLists.txt
===================================================================
--- trunk/demos/PidStandalone/simulator/CMakeLists.txt	(revision 301)
+++ trunk/demos/PidStandalone/simulator/CMakeLists.txt	(revision 302)
@@ -2,12 +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)
 
 SET(SRC_FILES
@@ -15,30 +11,6 @@
 )
 
-INCLUDE_DIRECTORIES(
-	${FLAIR_INCLUDE_DIR}
+FLAIR_DEMO(${PROJECT_NAME} "${SRC_FILES}"
+           DEST_DIR PidStandalone
+           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/PidStandalone/simulator/resources/core2-64/simulator_x4.sh
===================================================================
--- trunk/demos/PidStandalone/simulator/resources/core2-64/simulator_x4.sh	(revision 301)
+++ trunk/demos/PidStandalone/simulator/resources/core2-64/simulator_x4.sh	(revision 302)
@@ -7,5 +7,5 @@
 fi
 
-. $IGEP_ROOT/uav_dev/bin/noarch/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
-$EXEC -n x4_0 -t x4 -a 127.0.0.1 -p 9000 -x simulator_x4.xml -o 10 -m $IGEP_ROOT/uav_dev/media -s $IGEP_ROOT/uav_dev/media/optitrack_b122.xml
+$EXEC -n x4_0 -t x4 -a 127.0.0.1 -p 9000 -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/PidStandalone/simulator/resources/core2-64/simulator_x8.sh
===================================================================
--- trunk/demos/PidStandalone/simulator/resources/core2-64/simulator_x8.sh	(revision 301)
+++ trunk/demos/PidStandalone/simulator/resources/core2-64/simulator_x8.sh	(revision 302)
@@ -7,5 +7,5 @@
 fi
 
-. $IGEP_ROOT/uav_dev/bin/noarch/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
-$EXEC  -n x8_0 -t x8 -a 127.0.0.1 -p 9000 -x simulator_x8.xml -o 10 -m $IGEP_ROOT/uav_dev/media -s $IGEP_ROOT/uav_dev/media/optitrack_b122.xml
+$EXEC  -n x8_0 -t x8 -a 127.0.0.1 -p 9000 -x simulator_x8.xml -o 10 -m $FLAIR_ROOT/flair-src/models -s $FLAIR_ROOT/flair-src/models/indoor_flight_arena.xml
Index: trunk/demos/PidStandalone/uav/CMakeLists.txt
===================================================================
--- trunk/demos/PidStandalone/uav/CMakeLists.txt	(revision 301)
+++ trunk/demos/PidStandalone/uav/CMakeLists.txt	(revision 302)
@@ -2,13 +2,10 @@
 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)
 SET(FLAIR_USE_VISION_FILTER TRUE)
 SET(FLAIR_USE_META 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
@@ -17,29 +14,6 @@
 )
 
-INCLUDE_DIRECTORIES(
-	${FLAIR_INCLUDE_DIR}
+FLAIR_DEMO(${PROJECT_NAME} "${SRC_FILES}"
+           DEST_DIR PidStandalone
+           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/PidStandalone/uav/resources/core2-64/x4.sh
===================================================================
--- trunk/demos/PidStandalone/uav/resources/core2-64/x4.sh	(revision 301)
+++ trunk/demos/PidStandalone/uav/resources/core2-64/x4.sh	(revision 302)
@@ -6,5 +6,5 @@
 fi
 
-. $IGEP_ROOT/uav_dev/bin/noarch/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
 $EXEC -n x4_0 -a 127.0.0.1 -p 9000 -l ./ -x setup_x4.xml -t x4_simu $*
Index: trunk/demos/PidStandalone/uav/resources/core2-64/x8.sh
===================================================================
--- trunk/demos/PidStandalone/uav/resources/core2-64/x8.sh	(revision 301)
+++ trunk/demos/PidStandalone/uav/resources/core2-64/x8.sh	(revision 302)
@@ -7,5 +7,5 @@
 fi
 
-. $IGEP_ROOT/uav_dev/bin/noarch/distribution_specific_hack.sh
+. $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh
 
 $EXEC -n x8_0 -a 127.0.0.1 -p 9000 -l ./ -x setup_x8.xml -t x8_simu
