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

Include libs in Visual Studio 2015



  • Hello,
    I'm using Visual Studio 2015 with Qt5 plugin and I want to include some libs in a Qt project. In Qt creator I could to this in .pro file with INCLUDEPATH += ... and LIBS += ... but I do not know how to do this in Visual Studio.



  • This has very little to do with Qt...

    • INCLUDEPATH +=
      • Right Click on the project file -> properties -> C/C++ -> General -> additional include directories
    • LIBS +=
      • -L
        • Right Click on the project file -> properties -> Linker -> General -> Additional library directories
      • -l
        • Right Click on the project file -> properties -> Linker -> Input -> Additional dependencies

    you have to do it separately for Debug and Release


Log in to reply