diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
commit | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch) | |
tree | 99e72842fe687baea16376a147619b6048d7e441 /doc/CMakeLists.txt | |
download | kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip |
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..314d65c --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,17 @@ +INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) + +# Macro defined in FindMEINPROC.cmake handles building and installing +ADD_DOCS(kmymoney2 en) + +# Manpages we have to handle manually +SET(_in ${CMAKE_CURRENT_SOURCE_DIR}/en/kmymoney2.1) +SET(_out ${CMAKE_CURRENT_BINARY_DIR}/kmymoney2.1.gz) + +ADD_CUSTOM_COMMAND(OUTPUT ${_out} + COMMAND gzip + ARGS -9 -c -N ${_in} > ${_out} + DEPENDS ${_in}) +INSTALL(FILES ${_out} + DESTINATION ${MAN_INSTALL_DIR}/man1) +ADD_CUSTOM_TARGET(manpages ALL DEPENDS ${_out}) +ADD_DEPENDENCIES(documentation manpages) |