]> git.mxchange.org Git - flightgear.git/blob - utils/fgviewer/CMakeLists.txt
fgviewer: Import hla based viewer application.
[flightgear.git] / utils / fgviewer / CMakeLists.txt
1 set(FGVIEWER_SOURCES
2   fgviewer.cxx
3   Drawable.cxx
4   Renderer.cxx
5   SlaveCamera.cxx
6   Viewer.cxx
7 )
8
9 if(RTI_FOUND)
10   set(FGVIEWER_RTI_SOURCES
11     HLACamera.cxx
12     HLACameraClass.cxx
13     HLACameraManipulator.cxx
14     HLADrawable.cxx
15     HLADrawableClass.cxx
16     HLAEyeTracker.cxx
17     HLAEyeTrackerClass.cxx
18     HLAMPAircraft.cxx
19     HLAMPAircraftClass.cxx
20     HLAOrthographicCamera.cxx
21     HLAOrthographicCameraClass.cxx
22     HLAPerspectiveCamera.cxx
23     HLAPerspectiveCameraClass.cxx
24     HLAPerspectiveViewer.cxx
25     HLAPerspectiveViewerClass.cxx
26     HLARenderer.cxx
27     HLARendererClass.cxx
28     HLASceneObject.cxx
29     HLASceneObjectClass.cxx
30     HLAView.cxx
31     HLAViewClass.cxx
32     HLAViewer.cxx
33     HLAViewerClass.cxx
34     HLAViewerFederate.cxx
35     HLAWindowDrawable.cxx
36     HLAWindowDrawableClass.cxx
37   )
38   set(FGVIEWER_RTI_LIBRARIES ${RTI_LIBRARIES})
39 else()
40   set(FGVIEWER_RTI_LIBRARIES "")
41   set(FGVIEWER_RTI_SOURCES "")
42 endif()
43
44 add_executable(fgviewer ${FGVIEWER_SOURCES} ${FGVIEWER_RTI_SOURCES})
45 target_link_libraries(fgviewer
46         ${FGVIEWER_RTI_LIBRARIES}
47         ${SIMGEAR_LIBRARIES}
48         ${OPENSCENEGRAPH_LIBRARIES}
49         ${OPENGL_LIBRARIES}
50         ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
51 )
52 install(TARGETS fgviewer RUNTIME DESTINATION bin)