qml file install location

Martin Klapetek martin.klapetek at gmail.com
Mon Jan 11 18:15:56 UTC 2016


On Mon, Jan 11, 2016 at 4:08 AM, René J.V. <rjvbertin at gmail.com> wrote:

> Hello,
>
> How do KF5 framework, application etc. projects determine the install
> location for their qml files?
>
> I see that KDeclarative itself already refers to 2 CMake variables to
> define that location, KDE_INSTALL_QMLDIR and QML_INSTALL_DIR, neither of
> which appears to be set anywhere that I can find. It certainly doesn't
> appear that they are initialised from what qmake returns:
>
> QT_INSTALL_QML:/opt/local/share/qt5/qml
>
> Do I have to set this variable in my CMake formula and if so, should I set
> both or is one initialised from the other in code I missed somewhere?
>

The default is set by ECM, in kde-modules/KDEInstallDirs.cmake

>
> Is there a reason why this location isn't determined from qmake or
> (possibly) one of Qt's .cmake files? I'm not familiar enough with qml to
> know if the same scripts can run in Qt4 and Qt5 but I wouldn't think that's
> possible?
>

I think these are specific to ECM/KDE, that's why qmake does not
know about them.

Cheers
-- 
Martin Klapetek | KDE Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160111/8e349153/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list