On Monday, February 18, 2013 03:27:32 Sascha Cunz wrote:
> I am using FIND_PACKAGE and QT_USE_MODULES in each subdirectory of
> my cmake source tree like shown in [2]. This is required, because I have a
> generic stub that encapsules the differences from Qt4/5 and use that in
> several different projects. So i actually don't know in advance what git
> submodules are in use and what Qt modules they depend on.

Hi there,

You seem to be doing some things which are not recommended. You shouldn't be 
starting with finding qmake, and you shouldn't include() the config files 
directly. Using include() directly is likely to have unintended consequences. 
The appropriate way to write an umbrella infrastructure is something like what 
is in these files:

http://quickgit.kde.org/index.php?p=extra-cmake-modules.git&a=blob&f=find-
modules%2FFindQt5Transitional.cmake

http://quickgit.kde.org/index.php?p=extra-cmake-
modules.git&a=blob&f=modules%2FECMQt4To5Porting.cmake

Why do you duplicate the RCC macro?

I just created a project which calls find_package(Qt5Core) in two 
subdirectories and uses Qt5Core_INCLUDE_DIRS, and it works for me. Please file 
a bug with a minimal testcase, preferably using find_package instead of 
include() as you do.

Thanks,

-- 
Stephen Kelly <[email protected]> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

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

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to