Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-05-31 Thread irene w
${Qt_tmp}/moc_GMWindow.cpp) . add_dependencies (GM generate_foo) Does the Macro "SET_SOURCE_FILES_PROPERTIES" with "GENERATED" setting work for this purposes? Any help would be greatly appreciated ! On Wed, May 25, 2016 at 12:48 PM, irene w <ire866...@gmail.com&

[CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-05-25 Thread irene w
Hi, I am compiling a simple Qt3 application on Linux using CMake. In my case, I need to build moc_xxx files with custom options and output to a specified directory, So, I was not using CAMKE_AUTO macros. My cmake scripts create a "Qt_tmp" directory and output moc_xxx there. It looked it always