2011-06-05 21:08:44 +02:00
|
|
|
#FIXME: does this work in windows?
|
|
|
|
find_package(PNG REQUIRED)
|
2011-06-05 17:04:41 +02:00
|
|
|
find_package(OpenGL REQUIRED)
|
2011-06-05 21:08:44 +02:00
|
|
|
find_package(GLUT REQUIRED)
|
2011-07-21 23:42:45 +02:00
|
|
|
if(GLUT_FOUND)
|
|
|
|
message(STATUS "found glut")
|
2011-06-05 17:04:41 +02:00
|
|
|
|
2011-07-21 23:42:45 +02:00
|
|
|
add_executable(fgpanel main.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
ApplicationProperties.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
FGGLApplication.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
FGGLApplication.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
FGPanelApplication.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
FGPanelApplication.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
FGPNGTextureLoader.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
FGPNGTextureLoader.hxx
|
|
|
|
FGRGBTextureLoader.cxx
|
|
|
|
FGRGBTextureLoader.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
FGPanelProtocol.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
FGPanelProtocol.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
FGFontCache.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
FGFontCache.hxx
|
2011-07-21 23:42:45 +02:00
|
|
|
panel.cxx
|
2011-10-18 12:14:20 +01:00
|
|
|
panel.hxx
|
|
|
|
panel_io.cxx
|
|
|
|
panel_io.hxx)
|
2011-06-05 17:04:41 +02:00
|
|
|
|
2011-07-21 23:42:45 +02:00
|
|
|
target_link_libraries(fgpanel
|
|
|
|
${PNG_LIBRARIES}
|
|
|
|
${GLUT_LIBRARIES}
|
2011-09-08 13:59:40 +01:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-07-21 23:42:45 +02:00
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${PLIB_LIBRARIES}
|
2011-09-11 11:22:10 +02:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-07-21 23:42:45 +02:00
|
|
|
)
|
2011-06-05 17:04:41 +02:00
|
|
|
|
2011-07-21 23:42:45 +02:00
|
|
|
install(TARGETS fgpanel RUNTIME DESTINATION bin)
|
|
|
|
else()
|
|
|
|
message(STATUS "glut NOT found, can't build fgpanel")
|
|
|
|
endif()
|