]> git.mxchange.org Git - flightgear.git/commitdiff
Initial commit to add fgpanel to cmake build system
authorTorsten Dreyer <torsten@mustang.home.t3r.de>
Sun, 5 Jun 2011 15:04:41 +0000 (17:04 +0200)
committerTorsten Dreyer <torsten@mustang.home.t3r.de>
Sun, 5 Jun 2011 15:04:41 +0000 (17:04 +0200)
Most likely only works on OSX, other OSes will follow later

utils/CMakeLists.txt
utils/fgpanel/CMakeLists.txt [new file with mode: 0644]

index f3caabb8ba4550b3cc9abbb64fc409f7eae60520..5ba92f6f89d72d82cdfd8cbdd1aecb5e7e95e416 100644 (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)
diff --git a/utils/fgpanel/CMakeLists.txt b/utils/fgpanel/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e770d76
--- /dev/null
@@ -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)