[CMake] installing generated files

Stefan Kögl skoegl at online.de
Wed Nov 28 01:25:26 EST 2007


Hi,

how to install files generated by custom targets, eg. doxygen? The files are 
generated in ${DOXYGEN_BINARY_DIR}/html ( <projectname>/doc/html ).

here is the  <projectname>/doc/CMakeLists.txt
##############################################

PROJECT(doxygen)
FIND_PACKAGE(Doxygen REQUIRED)

CONFIGURE_FILE(${doxygen_SOURCE_DIR}/Doxyfile.in
            ${doxygen_BINARY_DIR}/Doxyfile)

FILE(MAKE_DIRECTORY ${doxygen_BINARY_DIR}/html)
ADD_CUSTOM_TARGET(docs-doxygen COMMAND ${DOXYGEN_EXECUTABLE} 
${doxygen_BINARY_DIR}/Doxyfile VERBATIM)
INSTALL(DIRECTORY ${doxygen_BINARY_DIR}/html DESTINATION ${PERTUBIS_DOC_PATH})

##############################################

Stefan Kögl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://public.kitware.com/pipermail/cmake/attachments/20071128/e72eb5ed/attachment.pgp


More information about the CMake mailing list