Re: [CMake] add_custom_command which generates new sources which I want to specify before

2013-02-28 Thread Eric Noulard
2013/3/1 Baradé : > Hi, > assuming I have the following statements: > > add_library(targetName src1 src2 ... generatedSrc) > add_custom_command(TARGET targetName PRE_BUILD COMMAND bash -c "bla bla > bla") > > and the custom command generates sources which are specified before in > "add_library" CMa

[CMake] add_custom_command which generates new sources which I want to specify before

2013-02-28 Thread Baradé
Hi, assuming I have the following statements: add_library(targetName src1 src2 ... generatedSrc) add_custom_command(TARGET targetName PRE_BUILD COMMAND bash -c "bla bla bla") and the custom command generates sources which are specified before in "add_library" CMake/build process will abort sinc