[CMake] Building targets for install only ...
ctrlaltca
ctrlaltca at libero.it
Wed Jan 13 10:50:10 EST 2010
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
fabio
On 13/01/2010 15:03, Dr. Stefan Sablatnög wrote:
> Hi everybody,
>
>
>
> Does anyone know whether there is a way to build a target only
>
> if “make install” is called? I tried “add_dependencies(install
> <target>), but
>
> it complains, that the target install does not exist.
>
> Is the install target only available in the generated makefiles?
>
>
>
> Thanks and best regards
>
> Stefan
>
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list