On Thursday 12 September 2013 16:14:36 Jan Kundrát wrote:
> On Thursday, 12 September 2013 15:52:38 CEST, Pali Rohár wrote:
> > First I changed all find_package with trojita_find_package
> > which handle also feature summary cmake module and second
> > there is for example qt dbus and qt test libraries which
> > are not required always (only if dbus and test options are
> > set to AUTO or ON).
> 
> I understand what you did and why you made it so. Despite
> that, I want to unify the Qt5 setup with how it's done by
> other projects, and that means that the cmake setup shall
> look like this:
> 
>   find_package(Qt5Core REQUIRED)
> 

What is bad on using here also my wrapper trojita_find_package?

My wrapper will automatically call also set_package_properties() 
which will show this qt5core package in future summary as 
required package.

>   qt5_use_modules(DesktopGui Widgets)
>   qt5_use_modules(Imap Network)
> 
> etc.

There is no problem adding these qt5_use_modules when compiling 
with qt5.

> 
> Regarding the automagic dependencies -- I think it's OK to use
> your wrappers for discovering whether DBUS is here. But even
> in that case and when you detect that it is here, please use
> the qt5_use_modules calls for actual build configuration for
> all Qt modules including qtdbus and qttest.
> 
> With kind regards,
> Jan

Calling qt5_use_modules with dbus is needed only for targets 
which using dbus library, right?

-- 
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to