[CMake] Generate a file with a custom command as part of build

doug livesey biot023 at gmail.com
Sat Jan 21 19:01:49 EST 2017


Hi, I want to call the following command as part of a build:

$ ./node_modules/.bin/webpack

This should generate a file public/bundle.js

I'm really struggling with this. I guess there's something fundamental that
I'm not understanding. `add_custom_command` doesn't seem to be doing
anything.
I would anticipate that it would put the command I want to call in the
makefile, but it hasn't.
If anyone could advise me on what I'm not getting here, that would be
brilliant.
Cheers,
   Doug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170122/21b014a8/attachment.html>


More information about the CMake mailing list