[CMake] Building targets for install only ...

Eric Noulard eric.noulard at gmail.com
Wed Jan 13 11:41:06 EST 2010


2010/1/13 ctrlaltca <ctrlaltca at libero.it>:
> The SCRIPT and CODE signature:
>
>  install([[SCRIPT <file>] [CODE <code>]] [...])
>
> The SCRIPT form will invoke the given CMake script files during
> installation. If the script file name is a relative path it will be
> interpreted with respect to the current source directory. The CODE form
> will invoke the given CMake code during installation. Code is specified
> as a single argument inside a double-quoted string. For example, the code
>
>  install(CODE "MESSAGE(\"Sample install message.\")")
>
> will print a message during installation.
>
> I hope this can help

I think this scheme wouldn't fits the needs because you usually wants
the executable/library
to be built BEFORE install process is taking place.

It may work but this is not so sure.


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list