[CMake] ActiveQt with CMake?
Stephen Kelly
steveire at gmail.com
Wed Dec 5 10:32:08 EST 2012
Pau Garcia i Quiles wrote:
> On Tue, Dec 4, 2012 at 11:28 AM, Stephen Kelly
> <steveire at gmail.com> wrote:
>
>>
>> Hi there,
>>
>> I'm attempting to write a unit test for the Qt 5 ActiveQt module:
>>
>> https://codereview.qt-project.org/#change,41554
>>
>> The problem is that I don't have any prior experience with ActiveQt, and
>> in particular ActiveQt with CMake.
>>
>> It seems that as part of the build, qmake is invoking the built
>> executable with the -dumpidl command line option. Is a post-build step or
>> a cpack macro
>> or so needed for that kind of stuff? Has anyone using CMake with ActiveQt
>> come up against that issue before? How did you solve it?
>>
>
> Take a look at this mail from 8 years ago, it explains all the steps and
> the rationale and usefulness of each of them:
>
> http://lists.trolltech.com/qt-interest/2004-05/thread00936-0.html
Yes, I found that in my search. It's linked in the commit message of the Qt
review request I linked to.
>
> I think a few new macros (CMake, not CPack) are needed to generate the
> IDL, then compile it to the type library (.tlb), then combine it with the
> executable. Amb maybe even one that combines those three in one, which
> will be what people usually do.
>
What surprises me is that in the time since ActiveQt and CMake could be used
together, no one else has written such macros.
Or has everyone using the ActiveQt modules written such macros separately?
Or is it more likely that people using ActiveQt have manually done the post-
build steps, such as -dumpidl and creating the IDL type libbrary, outside of
CMake?
I'm trying to find out how people use ActiveQt/CMake in practice in the real
world, what compatibility needs to be kept, and if the CMake files generated
for Qt 5 are useful at all, or need to be extended before becoming useful.
Your reply makes me think that the Qt5 patch is useful to the same extent as
the FindQt4 patch was useful - that it is enough that people can do the rest
themselves (outside of CMake if needed)? Can you confirm?
Thanks,
Steve.
More information about the CMake
mailing list