[CMake] makefile helper targets for generated source files.

James Bigler jamesbigler at gmail.com
Mon Apr 25 12:54:23 EDT 2011


If I have a custom command:

add_custom_command(OUTPUT myfile.out)

Then I add that file to the target:

add_executable(mytarget main.cpp myfile.out)

If I do a 'make help' I get rules for main.o, but none for myfile.out.  Is
there something I can add to create a helper makefile target?

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110425/5629d595/attachment.htm>


More information about the CMake mailing list