2011-06-05 19:08:44 +00:00
|
|
|
#FIXME: does this work in windows?
|
|
|
|
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
|
|
|
|
FGGLApplication.cxx
|
|
|
|
FGPanelApplication.cxx
|
|
|
|
FGPNGTextureLoader.cxx
|
|
|
|
FGRGBTextureLoader.cxx
|
|
|
|
FGPanelProtocol.cxx
|
|
|
|
FGFontCache.cxx
|
|
|
|
panel.cxx
|
|
|
|
panel_io.cxx)
|
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-07-21 21:42:45 +00:00
|
|
|
)
|
2011-06-05 15:04:41 +00:00
|
|
|
|
2011-07-21 21:42:45 +00:00
|
|
|
install(TARGETS fgpanel RUNTIME DESTINATION bin)
|
|
|
|
else()
|
|
|
|
message(STATUS "glut NOT found, can't build fgpanel")
|
|
|
|
endif()
|