[CMake] Running custom executable
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Apr 8 16:12:56 EDT 2015
On Tuesday, April 07, 2015 15:24:18 Daniel Dilts wrote:
> Looking at the way these things work, it seems to me that the ideal
> solution to my situation, if it is possible, is to do a
> add_custom_command() for each source file, and then do a
> add_custom_target() that has all of the custom commands as PRE_BUILD events.
No, PRE_BUILD works only for Visual Studio generators according to the docs.
I think you need to give the list of output files generated using
add_custom_command() as DEPENDS to add_custom_target().
Alex
More information about the CMake
mailing list