From a26e04f93bddced119bdb40fd7b2c408eb8652b6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 26 Mar 2014 15:19:50 +0100 Subject: [PATCH] make documentation build --- CMakeLists.txt | 8 ++++++++ doc/CMakeLists.txt | 2 +- doc/plasmapkg/CMakeLists.txt | 2 ++ doc/{ => plasmapkg}/man-plasmapkg.1.docbook | 0 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 doc/plasmapkg/CMakeLists.txt rename doc/{ => plasmapkg}/man-plasmapkg.1.docbook (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1764afb3a..638e5cce1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,11 @@ find_package(KF5WidgetsAddons ${KF5_VERSION} REQUIRED) find_package(KF5WindowSystem ${KF5_VERSION} REQUIRED) find_package(KF5XmlGui ${KF5_VERSION} REQUIRED) +find_package(KF5DocTools ${KF5_VERSION}) +set_package_properties(X11 PROPERTIES DESCRIPTION "Tools to generate documentation" + TYPE OPTIONAL + ) + #optional features find_package(X11 MODULE) set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries" @@ -177,6 +182,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma_version.h include_directories(${CMAKE_CURRENT_BINARY_DIR}) ################# list the subdirectories ################# +if (KF5DocTools) + add_subdirectory(doc) +endif() add_subdirectory(src) add_subdirectory(desktoptheme) add_subdirectory(examples) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 93b1d241e..2acc3f031 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,2 +1,2 @@ -kdoctools_create_manpage(man-plasmapkg.1.docbook 1 INSTALL_DESTINATION ${MAN_INSTALL_DIR}) +add_subdirectory(plasmapkg) diff --git a/doc/plasmapkg/CMakeLists.txt b/doc/plasmapkg/CMakeLists.txt new file mode 100644 index 000000000..93b1d241e --- /dev/null +++ b/doc/plasmapkg/CMakeLists.txt @@ -0,0 +1,2 @@ +kdoctools_create_manpage(man-plasmapkg.1.docbook 1 INSTALL_DESTINATION ${MAN_INSTALL_DIR}) + diff --git a/doc/man-plasmapkg.1.docbook b/doc/plasmapkg/man-plasmapkg.1.docbook similarity index 100% rename from doc/man-plasmapkg.1.docbook rename to doc/plasmapkg/man-plasmapkg.1.docbook