[CMake] copying the contents of a directory with cpack

Bill Hoffman bill.hoffman at kitware.com
Mon Sep 17 20:31:59 EDT 2007


Niall Dalton wrote:
> Hi,
>
> I have a custom target that creates doxygen documentation from my C 
> header files. I'd like, as part of my cpack configuration in my main 
> CMakeLists.txt, to copy the directory containing the doxygen output 
> into the .tar.gz package.
>
> What is the simplest way to do this?
Basically, cpack just uses whatever make install does.  So, you would 
need to use the install commands in cmake.  Once those are working cpack 
should work.

-Bill



More information about the CMake mailing list