ソースを参照

Make documentation location configurable

This is an ongoing effort to allow different file system layouts (#5)
tags/1.2
Timo Röhling 11年前
コミット
e813563933
1個のファイルの変更2行の追加1行の削除
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt ファイルの表示

@@ -6,6 +6,7 @@ option(USE_APPARMOR "Enable AppArmor profile" OFF)
6 6
 
7 7
 set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
8 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 11
 find_program(HELP2MAN help2man DOC "path to help2man executable")
11 12
 find_program(DD dd DOC "path to dd executable")
@@ -57,6 +58,6 @@ if(USE_APPARMOR)
57 58
 endif()
58 59
 
59 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 62
 install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
62 63
 

読み込み中…
キャンセル
保存