2010-11-30 10:08:30 +00:00
|
|
|
|
2011-01-28 18:30:27 +00:00
|
|
|
if (MSVC)
|
2011-01-28 18:34:49 +00:00
|
|
|
if (CMAKE_CL_64)
|
|
|
|
set( RESOURCE_FILE flightgear64.rc )
|
|
|
|
else (CMAKE_CL_64)
|
|
|
|
set( RESOURCE_FILE flightgear.rc )
|
|
|
|
endif (CMAKE_CL_64)
|
2011-01-28 18:30:27 +00:00
|
|
|
endif (MSVC)
|
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
set(SOURCES
|
|
|
|
CameraGroup.cxx
|
|
|
|
FGEventHandler.cxx
|
|
|
|
WindowBuilder.cxx
|
|
|
|
WindowSystemAdapter.cxx
|
|
|
|
bootstrap.cxx
|
|
|
|
fg_commands.cxx
|
|
|
|
fg_init.cxx
|
|
|
|
fg_io.cxx
|
|
|
|
fg_os_common.cxx
|
|
|
|
fg_os_osgviewer.cxx
|
|
|
|
fg_props.cxx
|
|
|
|
fgviewer.cxx
|
|
|
|
globals.cxx
|
|
|
|
logger.cxx
|
|
|
|
main.cxx
|
|
|
|
options.cxx
|
|
|
|
renderer.cxx
|
|
|
|
splash.cxx
|
|
|
|
util.cxx
|
|
|
|
viewer.cxx
|
|
|
|
viewmgr.cxx
|
2011-01-28 18:30:27 +00:00
|
|
|
${RESOURCE_FILE}
|
2010-11-30 10:08:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(fgfs ${SOURCES})
|
|
|
|
|
|
|
|
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}")
|
|
|
|
|
2010-12-26 12:55:52 +00:00
|
|
|
if(RTI_FOUND)
|
|
|
|
find_sg_component(hla13 SIMGEAR_LIBRARIES)
|
|
|
|
find_sg_component(hla SIMGEAR_LIBRARIES)
|
|
|
|
set(HLA_LIBRARIES ${RTI_LIBRARIES})
|
|
|
|
else()
|
|
|
|
set(HLA_LIBRARIES "")
|
|
|
|
endif()
|
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
target_link_libraries(fgfs
|
|
|
|
${FG_LIBS}
|
2011-06-11 22:44:07 +00:00
|
|
|
${HLA_LIBRARIES}
|
2010-11-30 10:08:30 +00:00
|
|
|
${SIMGEAR_LIBRARIES}
|
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
|
|
|
${OPENAL_LIBRARY}
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${ALUT_LIBRARY}
|
|
|
|
${ZLIB_LIBRARIES}
|
2010-12-25 23:44:02 +00:00
|
|
|
${PLIB_LIBRARIES}
|
2011-01-03 09:50:05 +00:00
|
|
|
${RT_LIBRARY})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
install(TARGETS fgfs RUNTIME DESTINATION bin)
|