<html><head></head><body bgcolor="#ffffff" text="#2e3436" link="#2a76c6" vlink="#2e3436"><div>Hi,</div><div><br></div><div>I play with CMake on PythonQt build. I faced a chalenge:</div><div><br></div><div>PythonQt is composed of:</div><div>  1)The generator which wrap Qt api(parses Qt sources to produce cpp/python wrappers)</div><div>      2)The Lib (main engine)</div><div>  3)The wrappers generated by 1)</div><div><br></div><div>The chalenge was to build in this order:</div><div>   1) build generator</div><div>       2) generate from generator wrappers </div><div>     3) build Lib</div><div>     4) build wrappers</div><div><br></div><div>My issue was to build wrappers from generator output since I can't predict how many files it will produce. And what I understood is that Glob can only be used at config time and I cant use *.cpp as sources.</div><div><br></div><div>So my basic solution was to build generator and call it at config time using ExternalProject and execute_process:</div><div><a href="https://github.com/jeandet/PythonQt/blob/cmake-clean/cmake/generated_cpp.cmake">https://github.com/jeandet/PythonQt/blob/cmake-clean/cmake/generated_cpp.cmake</a></div><div>Then build src and wrapper normally.</div><div>I'm a CMake beginner but I feel that this solution is ugly and it slows down config time.</div><div><br></div><div>Did I miss something? </div><div><br></div><div>Best regards,</div><div>Alexis.</div></body></html>