main.cxx
options.cxx
util.cxx
+ positioninit.cxx
+ subsystemFactory.cxx
${RESOURCE_FILE}
)
main.hxx
options.hxx
util.hxx
+ positioninit.hxx
+ subsystemFactory.hxx
)
get_property(FG_SOURCES GLOBAL PROPERTY FG_SOURCES)
source_group("Main\\Sources" FILES ${SOURCES})
add_executable(fgfs ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
+# disable sqlite3 dynamic lib support
+# this should really be a SOURCE property, but the way we handle
+# Fcomponent sources is making that tricky
+add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
+
get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
#message(STATUS "fg libs ${FG_LIBS}")
#message(STATUS "OSG libs ${OPENSCENEGRAPH_LIBRARIES}")
#message(STATUS "SG libs ${SIMGEAR_LIBRARIES}")
if(RTI_FOUND)
- find_sg_component(hla SIMGEAR_LIBRARIES)
- find_sg_component(rti13 SIMGEAR_LIBRARIES)
- find_sg_component(rti SIMGEAR_LIBRARIES)
set(HLA_LIBRARIES ${RTI_LIBRARIES})
else()
set(HLA_LIBRARIES "")
target_link_libraries(fgfs JSBSim)
endif()
-include_directories(${PROJECT_SOURCE_DIR}/src/Canvas/ShivaVG/include)
-add_definitions(-DVG_API_EXPORT)
+if(FG_HAVE_GPERFTOOLS)
+ target_link_libraries(fgfs profiler tcmalloc)
+endif()
target_link_libraries(fgfs
+ ${SQLITE3_LIBRARY}
${SIMGEAR_LIBRARIES}
${OPENSCENEGRAPH_LIBRARIES}
${OPENGL_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
${PLATFORM_LIBS}
- ShivaVG
)
install(TARGETS fgfs RUNTIME DESTINATION bin)