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
|
|
|
)
|
2011-06-26 06:49:37 +00:00
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
CameraGroup.hxx
|
|
|
|
FGEventHandler.hxx
|
|
|
|
WindowBuilder.hxx
|
|
|
|
WindowSystemAdapter.hxx
|
|
|
|
fg_commands.hxx
|
|
|
|
fg_init.hxx
|
|
|
|
fg_io.hxx
|
|
|
|
fg_props.hxx
|
|
|
|
fgviewer.hxx
|
|
|
|
globals.hxx
|
|
|
|
logger.hxx
|
|
|
|
main.hxx
|
|
|
|
options.hxx
|
|
|
|
renderer.hxx
|
|
|
|
splash.hxx
|
|
|
|
util.hxx
|
|
|
|
viewer.hxx
|
|
|
|
viewmgr.hxx
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(fgfs ${SOURCES} ${HEADERS})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
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(hla SIMGEAR_LIBRARIES)
|
2011-08-30 19:51:53 +00:00
|
|
|
find_sg_component(rti13 SIMGEAR_LIBRARIES)
|
|
|
|
find_sg_component(rti SIMGEAR_LIBRARIES)
|
2010-12-26 12:55:52 +00:00
|
|
|
set(HLA_LIBRARIES ${RTI_LIBRARIES})
|
|
|
|
else()
|
|
|
|
set(HLA_LIBRARIES "")
|
|
|
|
endif()
|
|
|
|
|
2011-08-30 19:51:53 +00:00
|
|
|
target_link_libraries(fgfs
|
2010-11-30 10:08:30 +00:00
|
|
|
${FG_LIBS}
|
|
|
|
${SIMGEAR_LIBRARIES}
|
2011-08-30 19:51:53 +00:00
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
2011-10-28 14:09:10 +00:00
|
|
|
${ALUT_LIBRARY}
|
2011-08-30 19:51:53 +00:00
|
|
|
${OPENAL_LIBRARY}
|
2010-11-30 10:08:30 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
2010-12-25 23:44:02 +00:00
|
|
|
${PLIB_LIBRARIES}
|
2011-08-04 16:59:46 +00:00
|
|
|
${LIBSVN_LIBRARIES}
|
2011-09-11 09:22:10 +00:00
|
|
|
${HLA_LIBRARIES}
|
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-10-16 18:55:04 +00:00
|
|
|
${PLATFORM_LIBS}
|
2011-09-11 09:22:10 +00:00
|
|
|
)
|
2011-08-30 19:51:53 +00:00
|
|
|
|
2010-11-30 10:08:30 +00:00
|
|
|
install(TARGETS fgfs RUNTIME DESTINATION bin)
|
2011-10-21 11:48:42 +00:00
|
|
|
|
|
|
|
add_executable(metar metar_main.cxx)
|
|
|
|
target_link_libraries(metar
|
|
|
|
${SIMGEAR_LIBRARIES}
|
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
|
|
|
${PLATFORM_LIBS}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS metar RUNTIME DESTINATION bin)
|
|
|
|
|