Skip to content

Commit

Permalink
Split out glew settings to separate .pri file
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.clifford.at/openscad/trunk@530 b57f626f-c46c-0410-a088-ec61d464b74c
  • Loading branch information
kintel committed May 7, 2010
1 parent f5b3b30 commit a9f281e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions glew.pri
Original file line number Original file line Diff line number Diff line change
@@ -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
}

0 comments on commit a9f281e

Please sign in to comment.