]> git.mxchange.org Git - flightgear.git/blob - man/CMakeLists.txt
tilemanager: initialize member variables
[flightgear.git] / man / CMakeLists.txt
1 if(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
2     # use official include provided by latest CMake
3     include(GNUInstallDirs)
4 else(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
5     # backward compatibility: use our own module for older cmake versions
6     include(OldGNUInstallDirs)
7 endif(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
8
9 set(MANPAGES
10     fgfs.1
11     fgjs.1
12     fgpanel.1
13     gl-info.1
14     js_demo.1
15     terrasync.1)
16
17 # map some variables to what the man-pages expect
18 set(PACKAGE ${CMAKE_PROJECT_NAME})
19 set(VERSION ${FLIGHTGEAR_VERSION})
20
21 foreach(man ${MANPAGES})
22     configure_file (
23         "${PROJECT_SOURCE_DIR}/man/${man}.in"
24         "${PROJECT_BINARY_DIR}/man/${man}"
25         )
26
27     install(FILES ${PROJECT_BINARY_DIR}/man/${man}
28           DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc)
29 endforeach()