2012-12-16 15:43:22 +00:00
|
|
|
set(FGVIEWER_SOURCES
|
|
|
|
fgviewer.cxx
|
|
|
|
Drawable.cxx
|
|
|
|
Renderer.cxx
|
|
|
|
SlaveCamera.cxx
|
|
|
|
Viewer.cxx
|
|
|
|
)
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2012-12-16 15:43:22 +00:00
|
|
|
if(RTI_FOUND)
|
|
|
|
set(FGVIEWER_RTI_SOURCES
|
|
|
|
HLACamera.cxx
|
|
|
|
HLACameraClass.cxx
|
|
|
|
HLACameraManipulator.cxx
|
|
|
|
HLADrawable.cxx
|
|
|
|
HLADrawableClass.cxx
|
|
|
|
HLAEyeTracker.cxx
|
|
|
|
HLAEyeTrackerClass.cxx
|
|
|
|
HLAMPAircraft.cxx
|
|
|
|
HLAMPAircraftClass.cxx
|
|
|
|
HLAOrthographicCamera.cxx
|
|
|
|
HLAOrthographicCameraClass.cxx
|
|
|
|
HLAPerspectiveCamera.cxx
|
|
|
|
HLAPerspectiveCameraClass.cxx
|
|
|
|
HLAPerspectiveViewer.cxx
|
|
|
|
HLAPerspectiveViewerClass.cxx
|
|
|
|
HLARenderer.cxx
|
|
|
|
HLARendererClass.cxx
|
|
|
|
HLASceneObject.cxx
|
|
|
|
HLASceneObjectClass.cxx
|
|
|
|
HLAView.cxx
|
|
|
|
HLAViewClass.cxx
|
|
|
|
HLAViewer.cxx
|
|
|
|
HLAViewerClass.cxx
|
|
|
|
HLAViewerFederate.cxx
|
|
|
|
HLAWindowDrawable.cxx
|
|
|
|
HLAWindowDrawableClass.cxx
|
|
|
|
)
|
|
|
|
set(FGVIEWER_RTI_LIBRARIES ${RTI_LIBRARIES})
|
|
|
|
else()
|
|
|
|
set(FGVIEWER_RTI_LIBRARIES "")
|
|
|
|
set(FGVIEWER_RTI_SOURCES "")
|
|
|
|
endif()
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2012-12-16 15:43:22 +00:00
|
|
|
add_executable(fgviewer ${FGVIEWER_SOURCES} ${FGVIEWER_RTI_SOURCES})
|
2015-04-03 18:15:52 +00:00
|
|
|
if(X11_FOUND)
|
|
|
|
target_link_libraries(fgviewer ${X11_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2011-09-01 19:05:50 +00:00
|
|
|
target_link_libraries(fgviewer
|
2016-01-30 01:59:16 +00:00
|
|
|
SimGearScene SimGearCore
|
2013-03-17 14:22:11 +00:00
|
|
|
${FGVIEWER_RTI_LIBRARIES}
|
2011-09-11 09:22:10 +00:00
|
|
|
)
|
2016-07-09 21:14:28 +00:00
|
|
|
install(TARGETS fgviewer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|