diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-03-16 23:34:43 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-03-18 12:45:23 +0100 |
commit | a6454b1658d325d6ff2d6ba6c349b772148798e0 (patch) | |
tree | 7301520567c1e8c5396af155b38d9ceb6b71334b /developer-doc/phb/CMakeLists.txt | |
parent | d855f704e838b0bcf33907ff38165fd1f745356b (diff) | |
download | kmymoney-a6454b1658d325d6ff2d6ba6c349b772148798e0.tar.gz kmymoney-a6454b1658d325d6ff2d6ba6c349b772148798e0.zip |
Conversion to the cmake building system.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'developer-doc/phb/CMakeLists.txt')
-rw-r--r-- | developer-doc/phb/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/developer-doc/phb/CMakeLists.txt b/developer-doc/phb/CMakeLists.txt new file mode 100644 index 0000000..c90d9f1 --- /dev/null +++ b/developer-doc/phb/CMakeLists.txt @@ -0,0 +1,36 @@ + +set( STYLESHEET tde-nochunk.xsl ) + + +##### generate developer documentation + +add_custom_command( + OUTPUT phb.html + COMMENT "Generating developer documentation" + COMMAND ${KDE3_MEINPROC_EXECUTABLE} + --stylesheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/${STYLESHEET} + ${CMAKE_CURRENT_SOURCE_DIR}/phb.docbook --stdout | + ${ICONV_EXECUTABLE} -f ISO-8859-1 -t UTF-8 | + ${SED_EXECUTABLE} "s/ISO-8859-1/UTF-8/g" > phb.html +) +add_custom_target( phb-docs-html ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/phb.html +) + + +##### generate pdf for developer documentation + +if( BUILD_PDF_DOCS) + add_custom_command( + OUTPUT kmymoney-phb.pdf + COMMENT "Generating pdf for developer documentation" + COMMAND ${KDE3_MEINPROC_EXECUTABLE} + --stylesheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/${STYLESHEET} + ${CMAKE_CURRENT_SOURCE_DIR}/phb.docbook --stdout | + ${HTML2PS_EXECUTABLE} -n | + ${PS2PDF_EXECUTABLE} - kmymoney-phb.pdf + ) + add_custom_target( phb-docs-pdf ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kmymoney-phb.pdf + ) +endif() |