Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to use KIT name for loading library



  • Hello,
    i'm using a few kits in QTcreator. But I need load right library for each kit.
    I need something like this:
    win32:INCLUDEPATH += "C:/mylibs/extra headers"
    unix:INCLUDEPATH += "/home/user/extra headers"
    But our kits is always unix, so i need decide by KIT name - it's possible?
    KIT1:LIBS+= -L../staticLibrary/kit1 -lstaticLibrary
    KIT2:LIBS+= -L../staticLibrary/kit2 -lstaticLibrary

    Thanks


Log in to reply