cmake: make Qt4 qmake available via PATH
Thiago Macieira
thiago at kde.org
Wed Mar 22 18:27:16 CET 2006
Alexander Neundorf wrote:
>> $ ls `qmake -query QT_INSTALL_BINS`/uic
>> /home/tjmaciei/troll/qt-4.1-build/bin/uic*
>>
>> $ ls `pkg-config --variable prefix QtCore`/bin/uic
>> /home/tjmaciei/troll/qt-4.1-build/bin/uic*
>
>Is it somewhere documented what can be queried ?
>I didn't find it yet.
No, there are no documents.
You'll find the information on what can be queried with pkg-config by
looking at the .pc files.
As for the qmake -query, check qmake/property.cpp. Here it goes for
simplicity:
if(v == "QT_INSTALL_PREFIX")
return QLibraryInfo::location(QLibraryInfo::PrefixPath);
else if(v == "QT_INSTALL_DATA")
return QLibraryInfo::location(QLibraryInfo::DataPath);
else if(v == "QT_INSTALL_DOCS")
return QLibraryInfo::location(QLibraryInfo::DocumentationPath);
else if(v == "QT_INSTALL_HEADERS")
return QLibraryInfo::location(QLibraryInfo::HeadersPath);
else if(v == "QT_INSTALL_LIBS")
return QLibraryInfo::location(QLibraryInfo::LibrariesPath);
else if(v == "QT_INSTALL_BINS")
return QLibraryInfo::location(QLibraryInfo::BinariesPath);
else if(v == "QT_INSTALL_PLUGINS")
return QLibraryInfo::location(QLibraryInfo::PluginsPath);
else if(v == "QT_INSTALL_TRANSLATIONS")
return QLibraryInfo::location(QLibraryInfo::TranslationsPath);
else if(v == "QT_INSTALL_CONFIGURATION")
return QLibraryInfo::location(QLibraryInfo::SettingsPath);
else if(v == "QT_INSTALL_EXAMPLES")
return QLibraryInfo::location(QLibraryInfo::ExamplesPath);
else if(v == "QT_INSTALL_DEMOS")
return QLibraryInfo::location(QLibraryInfo::DemosPath);
else if(v == "QMAKE_MKSPECS")
return qmake_mkspec_paths().join(Option::target_mode ==
Option::TARG_WIN_MODE ? ";" : ":");
else if(v == "QMAKE_VERSION")
return qmake_version();
#ifdef QT_VERSION_STR
else if(v == "QT_VERSION")
return QT_VERSION_STR;
#endif
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
thiago.macieira (AT) trolltech.com Trolltech AS
GPG: 0x6EF45358 | Sandakerveien 116,
E067 918B B660 DBD1 105C | NO-0402
966C 33F5 F005 6EF4 5358 | Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060322/e1a179f6/attachment.pgp
More information about the Kde-buildsystem
mailing list