1
0
Fork 0

Initial commit to add fgpanel to cmake build system

Most likely only works on OSX, other OSes will follow later
This commit is contained in:
Torsten Dreyer 2011-06-05 17:04:41 +02:00
parent d21924770f
commit abc97adf2b
2 changed files with 29 additions and 0 deletions

View file

@ -5,3 +5,7 @@ add_subdirectory(GPSsmooth)
if (FLTK_FOUND)
add_subdirectory(fgadmin)
endif (FLTK_FOUND)
if (WITH_FGPANEL)
add_subdirectory(fgpanel)
endif (WITH_FGPANEL)

View file

@ -0,0 +1,25 @@
#FIXME: does this work in *nix/windows?
find_package(png REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glut REQUIRED)
add_executable(fgpanel main.cxx
FGGLApplication.cxx
FGPanelApplication.cxx
FGPNGTextureLoader.cxx
FGRGBTextureLoader.cxx
FGPanelProtocol.cxx
FGFontCache.cxx
panel.cxx
panel_io.cxx)
target_link_libraries(fgpanel
${PNG_LIBRARIES}
${GLUT_LIBRARIES}
${SIMGEAR_LIBRARIES}
${OPENGL_LIBRARIES}
${ZLIB_LIBRARIES}
${PLIB_LIBRARIES}
)
install(TARGETS fgpanel RUNTIME DESTINATION bin)