]> git.mxchange.org Git - flightgear.git/blobdiff - man/CMakeLists.txt
Fix Win32 build, hopefully.
[flightgear.git] / man / CMakeLists.txt
index 5011a831d4748617f7b993ee05f6325a052993a8..66bc113fb387559feea0df2ccd58f7e54b7a80aa 100644 (file)
@@ -1,12 +1,22 @@
-include(GNUInstallDirs)
+if (MSVC)
+    # don't install man pages on Windows
+else(MSVC)
+
+if(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
+    # use official include provided by latest CMake
+    include(GNUInstallDirs)
+else(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
+    # backward compatibility: use our own module for older cmake versions
+    include(OldGNUInstallDirs)
+endif(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
 
 set(MANPAGES
-    est-epsilon.1
     fgfs.1
     fgjs.1
+    fgpanel.1
     gl-info.1
     js_demo.1
-    pstest.1)
+    terrasync.1)
 
 # map some variables to what the man-pages expect
 set(PACKAGE ${CMAKE_PROJECT_NAME})
@@ -17,8 +27,9 @@ foreach(man ${MANPAGES})
         "${PROJECT_SOURCE_DIR}/man/${man}.in"
         "${PROJECT_BINARY_DIR}/man/${man}"
         )
-    
+
     install(FILES ${PROJECT_BINARY_DIR}/man/${man}
           DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc)
 endforeach()
-  
+
+endif(MSVC)
\ No newline at end of file