You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
567 B
18 lines
567 B
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)
|