Source

glxx / glxx.pri

QT += opengl

INCLUDEPATH += $$PWD/include
LIBS += -L$${PWD}/$${QMAKE_TARGET.arch}

GLXX_LIB = glxx
CONFIG(debug, debug|release): GLXX_LIB = $${GLXX_LIB}d
windows: GLXX_LIB = $${GLXX_LIB}0

LIBS += -l$$GLXX_LIB

# copy a file...
windows: contains(TEMPLATE, app) {
    GLXX_DLL_FILE = $${PWD}/$${QMAKE_TARGET.arch}/$${GLXX_LIB}.dll
    GLXX_DLL_FILE ~= s,/,\\,g
    CONFIG(release, debug|release): DESTDIR_WIN = $${OUT_PWD}/release
    CONFIG(debug, debug|release): DESTDIR_WIN = $${OUT_PWD}/debug
    DESTDIR_WIN ~= s,/,\\,g
    QMAKE_POST_LINK +=$$quote(cmd /c copy /y $${GLXX_DLL_FILE} $${DESTDIR_WIN}$$escape_expand(\\n\\t))
}