Qmake 中常用的变量:
-=
-L
-l
123456
win32 {# declarations for Windows 32 platforms only}unix {# declarations for Unix 32 platforms only}
还可以与 pkg-config 结合,例如要导入 OpenCV :
12345678910111213
unix { CONFIG += link_pkgconfig PKGCONFIG += opencv}Win32 {INCLUDEPATH += C:\OpenCV2.2\include\LIBS += -LC:\OpenCV2.2\lib \ -lopencv_core220 \ -lopencv_highgui220 \ -lopencv_imgproc220 \ -lopencv_features2d220 \ -lopencv_calib3d220}