[CMake] Running a program post-build

Micha Hergarden micha.hergarden at gmail.com
Sat Jul 25 04:35:25 EDT 2015


On 07/24/2015 07:12 PM, michelle lopez wrote:
> Hello.  This is my first time using cmake.  How do I get a program
> that is built to run in cmake?
>
>
Hello Michelle,

Could you elaborate on that? If you want one of the targets being built
to run as part of the whole project build, you can use the
'add_custom_target()' command to add another target that will run your
program.

regards,
Micha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150725/9ecd41de/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150725/9ecd41de/attachment.sig>


More information about the CMake mailing list