[CMake] Running custom executable

Daniel Dilts diltsman at gmail.com
Mon Apr 6 14:47:32 EDT 2015


I have a custom executable that does some codegen to produce an enumeration
and a couple of tables.  I need this to be run against each source file
before actual compilation.  It needs include directories and macro
definitions from the build system.

Is there a way to do this with a CMake build system?  add_custom_command
seems like it might work, but I need all runs of the custom executable to
run before compilation begins.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150406/592ecaa2/attachment.html>


More information about the CMake mailing list