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)
17 # map some variables to what the man-pages expect
18 set(PACKAGE ${CMAKE_PROJECT_NAME})
19 set(VERSION ${FLIGHTGEAR_VERSION})
21 foreach(man ${MANPAGES})
23 "${PROJECT_SOURCE_DIR}/man/${man}.in"
24 "${PROJECT_BINARY_DIR}/man/${man}"
27 install(FILES ${PROJECT_BINARY_DIR}/man/${man}
28 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc)