diff options
Diffstat (limited to 'glew.pri')
-rw-r--r-- | glew.pri | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/glew.pri b/glew.pri new file mode 100644 index 0000000..67ed68f --- /dev/null +++ b/glew.pri @@ -0,0 +1,19 @@ +glew { + !deploy { + # Optionally specify location of GLEW using the + # GLEWDIR env. variable + GLEW_DIR = $$(GLEWDIR) + isEmpty(GLEW_DIR) { + # Default to MacPorts on Mac OS X + macx: GLEW_DIR = /opt/local + } + !isEmpty(GLEW_DIR) { + INCLUDEPATH += $$GLEW_DIR/include + LIBS += -L$$GLEW_DIR/lib + message("GLEW location: $$GLEW_DIR") + } + } + + unix:LIBS += -lGLEW + win32:LIBS += -lglew32 +} |