2 # don't install man pages on Windows
5 if(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
6 # use official include provided by latest CMake
7 include(GNUInstallDirs)
8 else(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
9 # backward compatibility: use our own module for older cmake versions
10 include(OldGNUInstallDirs)
11 endif(${CMAKE_VERSION} VERSION_GREATER 2.8.4)
18 list(APPEND MANPAGES fgpanel.1)
22 list(APPEND MANPAGES terrasync.1)
26 list(APPEND MANPAGES fgjs.1)
30 list(APPEND MANPAGES js_demo.1)
33 # map some variables to what the man-pages expect
34 set(PACKAGE ${CMAKE_PROJECT_NAME})
35 set(VERSION ${FLIGHTGEAR_VERSION})
37 foreach(man ${MANPAGES})
39 "${PROJECT_SOURCE_DIR}/man/${man}.in"
40 "${PROJECT_BINARY_DIR}/man/${man}"
43 install(FILES ${PROJECT_BINARY_DIR}/man/${man}
44 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc)