2011-06-05 19:08:44 +00:00
|
|
|
find_package(PNG REQUIRED)
|
2011-06-05 15:04:41 +00:00
|
|
|
find_package(OpenGL REQUIRED)
|
2011-06-05 19:08:44 +00:00
|
|
|
find_package(GLUT REQUIRED)
|
2011-07-21 21:42:45 +00:00
|
|
|
if(GLUT_FOUND)
|
|
|
|
message(STATUS "found glut")
|
2011-06-05 15:04:41 +00:00
|
|
|
|
2011-07-21 21:42:45 +00:00
|
|
|
add_executable(fgpanel main.cxx
|
2011-11-26 15:41:35 +00:00
|
|
|
ApplicationProperties.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
FGGLApplication.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
FGGLApplication.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
FGPanelApplication.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
FGPanelApplication.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
FGPNGTextureLoader.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
FGPNGTextureLoader.hxx
|
|
|
|
FGRGBTextureLoader.cxx
|
|
|
|
FGRGBTextureLoader.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
FGPanelProtocol.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
FGPanelProtocol.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
FGFontCache.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
FGFontCache.hxx
|
2011-07-21 21:42:45 +00:00
|
|
|
panel.cxx
|
2011-10-18 11:14:20 +00:00
|
|
|
panel.hxx
|
|
|
|
panel_io.cxx
|
2011-11-26 15:41:35 +00:00
|
|
|
panel_io.hxx
|
|
|
|
)
|
2011-06-05 15:04:41 +00:00
|
|
|
|
2011-07-21 21:42:45 +00:00
|
|
|
target_link_libraries(fgpanel
|
|
|
|
${PNG_LIBRARIES}
|
|
|
|
${GLUT_LIBRARIES}
|
2011-09-08 12:59:40 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-07-21 21:42:45 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${PLIB_LIBRARIES}
|
2011-09-11 09:22:10 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-11-26 15:41:35 +00:00
|
|
|
)
|
2011-06-05 15:04:41 +00:00
|
|
|
|
2011-12-18 11:40:34 +00:00
|
|
|
include_directories(${PNG_INCLUDE_DIR})
|
|
|
|
|
2016-07-09 21:14:28 +00:00
|
|
|
install(TARGETS fgpanel RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2011-07-21 21:42:45 +00:00
|
|
|
else()
|
|
|
|
message(STATUS "glut NOT found, can't build fgpanel")
|
|
|
|
endif()
|