Hello,

I am looking for the Qt project file variable to use in order to specify the build path.
In my example below I would like to replace build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug by a variable as this depends on the Qt version, on the build (debug,release) version, on the compiler used, on the target platform.


Qt Code:
  1. QT += core widgets
  2.  
  3. TARGET = pluginDemo
  4. TEMPLATE = app
  5.  
  6. SOURCES += main.cpp \
  7. mainwindow.cpp
  8. # pluginDialog.cpp
  9.  
  10. HEADERS += mainwindow.h
  11. # pluginDialog.h
  12.  
  13. RESOURCES += res/icons.qrc
  14.  
  15. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/release/ -lExtensionSystem
  16. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/debug/ -lExtensionSystem
  17. else:unix: LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/ -lExtensionSystem
  18.  
  19. INCLUDEPATH += $$PWD/../../libs/extensionsystem
  20. DEPENDPATH += $$PWD/../../libs/extensionsystem
To copy to clipboard, switch view to plain text mode