[Cmake] Custom targets with install target

Nils H. Busch nilsb at cns.mpg.de
Wed Apr 23 03:19:48 EDT 2003


Hi,

I am trying to add an install target to a custom target for creating
doxygen documentation.
I have tried so far adding a INSTALL_FILES command and following the
approach Andy has suggested in an earlier post by chaining
ADD_CUSTOM_COMMANDS for copying files.
It is necessary for me to wildcard the files to be copied (the output is
from doxygen).
There are two problems for me. First, I would like to associate this
target with the default install target.
I don't know how to achieve that with the second approach.
INSTALL_FILES on the other hand somehow concatenates the path and the
wildcard argument and thus does not work (cmake 1.6.5)
Using wildcard arguments does not seem to be easily possible with both
approaches.

BTW, how can I avoid that my custom doc target (added with
ADD_CUSTOM_TARGET doc ALL)
is being rebuilt everytime I issue a make regardless whether anything
has changed or not. Something with the dependencies is wrong.

Thanks.

--
    Nils H. Busch
    Max-Planck-Institute of Cognitive Neuroscience
    phone:  ++49 (341) 9940-035 fax:  ++49 (341) 9940-204
    e-mail: nilsb at cns.mpg.de






More information about the CMake mailing list