install(TARGETS SimGearCore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
else()
message(STATUS "Library building mode: STATIC LIBRARIES")
-
+
+ get_property(FG_GROUPS_CORE_SOURCES_C GLOBAL PROPERTY FG_GROUPS_CORE_SOURCES_C)
+ string(REPLACE "@" ";" groups ${FG_GROUPS_CORE_SOURCES_C} )
+ foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Sources" FILES ${g2})
+ endforeach()
+
+ get_property(FG_GROUPS_CORE_SOURCES_H GLOBAL PROPERTY FG_GROUPS_CORE_SOURCES_H)
+ string(REPLACE "@" ";" groups ${FG_GROUPS_CORE_SOURCES_H} )
+ foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Headers" FILES ${g2})
+ endforeach()
+
add_library(SimGearCore STATIC ${coreSources})
install(TARGETS SimGearCore ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
if(NOT SIMGEAR_HEADLESS)
+ get_property(FG_GROUPS_SCENE_SOURCES_C GLOBAL PROPERTY FG_GROUPS_SCENE_SOURCES_C)
+ string(REPLACE "@" ";" groups ${FG_GROUPS_SCENE_SOURCES_C} )
+ foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Sources" FILES ${g2})
+ endforeach()
+
+ get_property(FG_GROUPS_SCENE_SOURCES_H GLOBAL PROPERTY FG_GROUPS_SCENE_SOURCES_H)
+ string(REPLACE "@" ";" groups ${FG_GROUPS_SCENE_SOURCES_H} )
+ foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Headers" FILES ${g2})
+ endforeach()
+
add_library(SimGearScene STATIC ${sceneSources})
install(TARGETS SimGearScene ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif(NOT SIMGEAR_HEADLESS)
endif(SIMGEAR_SHARED)
-
-
+if(ENABLE_RTI)
+ # Ugly first aid to make hla compile agian
+ set_property(SOURCE hla/RTI13InteractionClass.cxx hla/RTI13ObjectClass.cxx
+ hla/RTI13ObjectInstance.cxx hla/RTI13Federate.cxx
+ hla/RTI13FederateFactory.cxx
+ APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
+endif(ENABLE_RTI)