Index: trunk/lib/FlairSimulator/CMakeLists.txt
===================================================================
--- trunk/lib/FlairSimulator/CMakeLists.txt	(revision 297)
+++ trunk/lib/FlairSimulator/CMakeLists.txt	(revision 302)
@@ -1,23 +1,10 @@
 PROJECT(FlairSimulator)
 cmake_minimum_required(VERSION 2.8)
-include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
+include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
 
 find_package(LibXml2 REQUIRED)
 
-execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
-                OUTPUT_VARIABLE GCC_VERSION)
-
-if (GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
-	if (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7)
-		ADD_DEFINITIONS("-std=c++11")
-	else()
-		ADD_DEFINITIONS("-std=c++0x")
-	endif()
-else()
-	message(STATUS "GCC version < 4.3, c+11 is not supported!")
-endif()
-
 INCLUDE_DIRECTORIES(
-      	${LIBXML2_INCLUDE_DIR}
+   	${LIBXML2_INCLUDE_DIR}
 	${CMAKE_CURRENT_SOURCE_DIR}/src
 	${CMAKE_CURRENT_SOURCE_DIR}/src/unexported
@@ -29,15 +16,8 @@
 )
 
-FILE(GLOB SIMU_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
-
-add_custom_target(
-	${PROJECT_NAME}_compile_info
-	COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
-)
+FILE(GLOB FLAIRSIMU_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
 
 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/no_gl)
-add_dependencies(FlairSimulator_nogl ${PROJECT_NAME}_compile_info)
 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gl)
-add_dependencies(FlairSimulator_gl ${PROJECT_NAME}_compile_info)
 endif()
Index: trunk/lib/FlairSimulator/gl/CMakeLists.txt
===================================================================
--- trunk/lib/FlairSimulator/gl/CMakeLists.txt	(revision 297)
+++ trunk/lib/FlairSimulator/gl/CMakeLists.txt	(revision 302)
@@ -3,11 +3,3 @@
 ADD_DEFINITIONS(-D_GNU_SOURCE -D_REENTRANT -DGL)
 
-
-ADD_LIBRARY(${PROJECT_NAME}
-	${SIMU_SRC}
-)
-
-INSTALL(TARGETS ${PROJECT_NAME}
-	LIBRARY DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
-	ARCHIVE DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
-)
+FLAIR_LIB(${PROJECT_NAME} "${FLAIRSIMU_SRC}")
Index: trunk/lib/FlairSimulator/no_gl/CMakeLists.txt
===================================================================
--- trunk/lib/FlairSimulator/no_gl/CMakeLists.txt	(revision 297)
+++ trunk/lib/FlairSimulator/no_gl/CMakeLists.txt	(revision 302)
@@ -3,13 +3,7 @@
 ADD_DEFINITIONS(-D_GNU_SOURCE -D_REENTRANT)
 
-ADD_LIBRARY(${PROJECT_NAME}
-	${SIMU_SRC}
-)
+FLAIR_LIB(${PROJECT_NAME} "${FLAIRSIMU_SRC}")
 
-INSTALL(TARGETS ${PROJECT_NAME}
-	LIBRARY DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
-	ARCHIVE DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
-)
-
+#install here, as FLAIR_LIB function will not find .h (in ../src)
 FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/../src/*.h")
-INSTALL(FILES ${files} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/FlairSimulator)
+INSTALL(FILES ${files} DESTINATION $ENV{FLAIR_ROOT}/flair-install/include/FlairSimulator)
Index: trunk/lib/FlairSimulator/src/Parser.cpp
===================================================================
--- trunk/lib/FlairSimulator/src/Parser.cpp	(revision 297)
+++ trunk/lib/FlairSimulator/src/Parser.cpp	(revision 302)
@@ -27,4 +27,6 @@
 #include <IGeometryCreator.h>
 #include <ISceneManager.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
 
 using namespace irr;
Index: trunk/lib/FlairSimulator/src/Parser.h
===================================================================
--- trunk/lib/FlairSimulator/src/Parser.h	(revision 297)
+++ trunk/lib/FlairSimulator/src/Parser.h	(revision 302)
@@ -20,7 +20,10 @@
 #include <Gui.h>
 #include <Vector3D.h>
-#include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <SColor.h>
+
+//todo make a pimpl to remove these forward declaration
+typedef struct _xmlNode xmlNode;
+typedef unsigned char xmlChar;
+typedef struct _xmlDoc xmlDoc;
 
 namespace flair {
