Qt批量添加动态库dll

QT一次性添加多个动态库文件

INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/libopencv_aruco455.dll.lib
else:win32-g++: LIBS += $$PWD/lib/libopencv_*.a
LIBS += -L$$PWD/bin/

头文件路径

INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include

静态库路径

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/libopencv_aruco455.dll.lib
else:win32-g++: LIBS += $$PWD/lib/libopencv_*.a

动态库路径

此文件夹下有很多DLL文件

LIBS += -L$$PWD/bin/

你可能感兴趣的:(QT,qt,开发语言)