[Development] [Interest] guidelines for modifying Qt's own build system?

Thiago Macieira thiago.macieira at intel.com
Sun Mar 15 01:40:18 CET 2015


On Saturday 14 March 2015 22:32:20 Kevin Kofler wrote:
> I think the idea was to avoid requiring any changes to the actual code of 
> the application, only to the build setup (which could then be centralized
> in  a common CMake module such as KDECompilerSettings.cmake in
> extra-cmake-modules that all the KDE projects include).

Add this .cpp to the compilation and build it into the binary:

static void useXdgPaths()
{
    QStandardPaths::setUseXdgPaths(true);
}
Q_CONSTRUCTOR_FUNCTION(useXdgPaths);

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list