[CMake] Quick Question: add_custom_target( xxx ) add_custom_command( TARGET xxx ... )

J Decker d3ck0r at gmail.com
Mon Mar 10 03:42:00 EDT 2014


Sorry; it would help if the target name was correct.


On Sun, Mar 9, 2014 at 11:55 PM, J Decker <d3ck0r at gmail.com> wrote:

> add_custom_target( xxx )
> add_custom_command( TARGET xxx
>    (PREBUILD? POSTBUILD? PRELINK?)
> COMMAND blah )
>
> Why doesn't that work?
>
> Right now I just have a dirty cmake script that does a bunch of macos that
> do ...  EXECUTE( cmake copy_if_different )'s and I just want to run those
> as a target instead of as 'cmake .'
>
> replacing "EXECUTE( "  with "add_custom_command( TARGET xxx " would be a
> really simple conversion....
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140310/09a786dd/attachment.html>


More information about the CMake mailing list