[Development] Qt's generated cmake files
Stephen Kelly
stephen.kelly at kdab.com
Mon Feb 18 07:18:44 CET 2013
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 <stephen.kelly at kdab.com> | 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130218/2c62af34/attachment.sig>
More information about the Development
mailing list