]> git.mxchange.org Git - flightgear.git/blob - utils/fgpanel/CMakeLists.txt
JsonUriHandler: allow POST updates without child
[flightgear.git] / utils / fgpanel / CMakeLists.txt
1 find_package(PNG REQUIRED)
2 find_package(OpenGL REQUIRED)
3 find_package(GLUT REQUIRED)
4 if(GLUT_FOUND)
5         message(STATUS "found glut")
6
7         add_executable(fgpanel main.cxx
8                 ApplicationProperties.hxx
9                 FGGLApplication.cxx 
10                 FGGLApplication.hxx
11                 FGPanelApplication.cxx 
12                 FGPanelApplication.hxx
13                 FGPNGTextureLoader.cxx 
14                 FGPNGTextureLoader.hxx
15                 FGRGBTextureLoader.cxx
16                 FGRGBTextureLoader.hxx 
17                 FGPanelProtocol.cxx
18                 FGPanelProtocol.hxx
19                 FGFontCache.cxx
20                 FGFontCache.hxx
21                 panel.cxx 
22                 panel.hxx
23                 panel_io.cxx
24                 panel_io.hxx
25         )
26
27         target_link_libraries(fgpanel 
28                 ${PNG_LIBRARIES}
29                 ${GLUT_LIBRARIES}
30                 ${SIMGEAR_CORE_LIBRARIES}
31                 ${OPENGL_LIBRARIES}
32                 ${PLIB_LIBRARIES}
33                 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
34         )
35
36         include_directories(${PNG_INCLUDE_DIR})
37
38         install(TARGETS fgpanel RUNTIME DESTINATION bin)
39 else()
40         message(STATUS "glut NOT found, can't build fgpanel")
41 endif()