Important: Please read the Qt Code of Conduct -

How to change "target.path" for qmake subdirs template project?

  • contains:
    `TEMPLATE = subdirs
    CONFIG += ordered nostrip

    SUBDIRS = QtCore QtGui QtMultimedia QtMultimediaWidgets QtNetwork QtOpenGL QtPrintSupport QtQml QtQuick QtSql QtSvg QtTest QtWidgets QtXml QtXmlPatterns QtDBus _QOpenGLFunctions_2_0 _QOpenGLFunctions_2_1 _QOpenGLFunctions_4_1_Core QtSensors QtSerialPort QtX11Extras QtBluetooth QtPositioning QtQuickWidgets QtWebSockets Enginio QtWebChannel QtLocation QtNfc pylupdate pyrcc Qt qmlscene`

    Is there an easy way to change the target.path so that it propagates to all the subdirectories eg. change in top-level target.path in file changes the target.path in in subfolder QtCore, etc.?

    Thanking you in advance for any help.

  • @sildeag - while I would still like to know if there is a solution, I noticed that python3 --destdir <DIR> provided an alternative way to change the target.path in all subdirs and if this wasn't specific enough, a configuration file with pyqt_module_dir would.

Log in to reply