Browse Source

Make documentation location configurable

This is an ongoing effort to allow different file system layouts (#5)
tags/1.2
Timo Röhling 11 years ago
parent
commit
e813563933
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt View File

6
 
6
 
7
 set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
7
 set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
8
 set(CONFIG_DIR "/etc/default" CACHE PATH "Location of configuration file")
8
 set(CONFIG_DIR "/etc/default" CACHE PATH "Location of configuration file")
9
+set(DOC_DIR "share/doc/${PROJECT_NAME}" CACHE PATH "Path for documentation files")
9
 
10
 
10
 find_program(HELP2MAN help2man DOC "path to help2man executable")
11
 find_program(HELP2MAN help2man DOC "path to help2man executable")
11
 find_program(DD dd DOC "path to dd executable")
12
 find_program(DD dd DOC "path to dd executable")
57
 endif()
58
 endif()
58
 
59
 
59
 install(TARGETS ${PROJECT_NAME} DESTINATION "sbin")
60
 install(TARGETS ${PROJECT_NAME} DESTINATION "sbin")
60
-install(FILES README.md main.cf.ex DESTINATION "share/doc/${PROJECT_NAME}")
61
+install(FILES README.md main.cf.ex DESTINATION "${DOC_DIR}")
61
 install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
62
 install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
62
 
63
 

Loading…
Cancel
Save