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

2017-01-26 Thread doug livesey
I'll have a play with that later. Thanks again for all your help. Doug. On 25 January 2017 at 16:02, Michael Ellery <mellery...@gmail.com> wrote: > > > On Jan 24, 2017, at 11:22 PM, doug livesey <biot...@gmail.com> wrote: > > > > Is there any way that I ca

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

2017-01-24 Thread doug livesey
Is there any way that I can make the files webpack compiles into dependencies for the Webpack task? So that any changes to those are picked up for recompilation? No worries if not, I just thought it would be nice. On 25 January 2017 at 07:19, doug livesey <biot...@gmail.com> wrote: >

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

2017-01-24 Thread doug livesey
they run. > > > On Jan 24, 2017, at 11:34 AM, doug livesey <biot...@gmail.com> wrote: > > > > Hi -- sorry about the really late reply, I've been away. Up to Hadrian's > Wall, and then for a Dark Skies observatory evening. > > It was ace. :) > > I've add

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

2017-01-24 Thread doug livesey
at execute_process. The > downside of that is that it will generally always run when CMAKE is run, > but never during the make process so it doesn’t really handle updates to > the source (input) files very well. I’m not sure which technique applies > best to your situation here

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

2017-01-21 Thread doug livesey
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