[CMake] Unknown generator output with CMake
Jeandet Alexis
alexis.jeandet at member.fsf.org
Tue Mar 28 15:57:48 EDT 2017
Hi,
I play with CMake on PythonQt build. I faced a chalenge:
PythonQt is composed of:
1)The generator which wrap Qt api(parses Qt sources to produce
cpp/python wrappers)
2)The Lib (main engine)
3)The wrappers generated by 1)
The chalenge was to build in this order:
1) build generator
2) generate from generator wrappers
3) build Lib
4) build wrappers
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.
So my basic solution was to build generator and call it at config time
using ExternalProject and execute_process:
https://github.com/jeandet/PythonQt/blob/cmake-clean/cmake/generated_cp
p.cmake
Then build src and wrapper normally.
I'm a CMake beginner but I feel that this solution is ugly and it slows
down config time.
Did I miss something?
Best regards,
Alexis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170328/b83106d4/attachment.html>
More information about the CMake
mailing list