summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-08-26 03:26:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-08-26 14:18:18 +0200
commit39ec936b1fc1565b0fa34bf6421c4b1fa93cba03 (patch)
tree49bb513d6446c9873b49fdaed71b448e32f63438
parente9d8d887c5ec276150871f1bff2509cc97e9eda7 (diff)
downloadtdesshaskpass-39ec936b1fc1565b0fa34bf6421c4b1fa93cba03.tar.gz
tdesshaskpass-39ec936b1fc1565b0fa34bf6421c4b1fa93cba03.zip
Use common rules to build and install documentation.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt2
-rw-r--r--doc/man/ksshaskpass.1 (renamed from src/ksshaskpass.1)0
-rw-r--r--src/CMakeLists.txt11
3 files changed, 1 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be733cc..942f88e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,7 +63,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( src )
-#tde_conditional_add_project_doc( BUILD_DOC )
+tde_conditional_add_project_docs( BUILD_DOC )
#tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
diff --git a/src/ksshaskpass.1 b/doc/man/ksshaskpass.1
index 4eece41..4eece41 100644
--- a/src/ksshaskpass.1
+++ b/doc/man/ksshaskpass.1
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 344912f..7e4ca6c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,14 +24,3 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
DESTINATION ${BIN_INSTALL_DIR}
)
-
-
-##### other data
-
-if( BUILD_DOC )
- install(
- FILES ${PROJECT_NAME}.1
- DESTINATION ${MAN_INSTALL_DIR}/man1
- COMPONENT doc
- )
-endif( )