diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index dc18327b0..d1ffed20f 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,4 +1,9 @@ -# docs -ecm_optional_add_subdirectory( kate ) -ecm_optional_add_subdirectory( katepart ) -ecm_optional_add_subdirectory( kwrite ) +find_package(KF5DocTools QUIET) + +if(NOT KF5DocTools_FOUND) + return() +endif() + +ecm_optional_add_subdirectory(kate) +ecm_optional_add_subdirectory(katepart) +ecm_optional_add_subdirectory(kwrite) diff --git a/doc/kate/CMakeLists.txt b/doc/kate/CMakeLists.txt index 9ba3c4b8f..ecb940f51 100644 --- a/doc/kate/CMakeLists.txt +++ b/doc/kate/CMakeLists.txt @@ -1,4 +1,10 @@ -########### install files ############### +kdoctools_create_handbook( + index.docbook + INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en + SUBDIR kate +) -kdoctools_create_handbook (index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kate) -kdoctools_create_manpage (man-kate.1.docbook 1 INSTALL_DESTINATION ${MAN_INSTALL_DIR}) +kdoctools_create_manpage( + man-kate.1.docbook 1 + INSTALL_DESTINATION ${MAN_INSTALL_DIR} +) diff --git a/doc/katepart/CMakeLists.txt b/doc/katepart/CMakeLists.txt index 6b7fc4323..77c4f6d55 100644 --- a/doc/katepart/CMakeLists.txt +++ b/doc/katepart/CMakeLists.txt @@ -1,4 +1,5 @@ -########### install files ############### -# -# -kdoctools_create_handbook (index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR katepart) +kdoctools_create_handbook( + index.docbook + INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en + SUBDIR katepart +) diff --git a/doc/kwrite/CMakeLists.txt b/doc/kwrite/CMakeLists.txt index 5f8071fe3..6bf40bfb9 100644 --- a/doc/kwrite/CMakeLists.txt +++ b/doc/kwrite/CMakeLists.txt @@ -1,3 +1,5 @@ -########### install files ############### - -kdoctools_create_handbook (index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kwrite) +kdoctools_create_handbook( + index.docbook + INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en + SUBDIR kwrite +)