Make the OPENCSGDIR variable optional on all platforms

git-svn-id: http://svn.clifford.at/openscad/trunk@194 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
kintel 2010-01-03 01:31:09 +00:00
parent e3011f42a5
commit 0340e12082
1 changed files with 9 additions and 5 deletions

View File

@ -18,7 +18,7 @@ QT += opengl
# Application configuration # Application configuration
CONFIG += debug CONFIG += debug
# CONFIG += release # CONFIG += release
#CONFIG += mdi CONFIG += mdi
CONFIG += cgal CONFIG += cgal
CONFIG += opencsg CONFIG += opencsg
@ -44,12 +44,16 @@ cgal {
opencsg { opencsg {
DEFINES += ENABLE_OPENCSG DEFINES += ENABLE_OPENCSG
LIBS += -L/opt/local/lib -lopencsg LIBS += -lopencsg
unix:LIBS += -lGLEW unix:LIBS += -lGLEW
win32:LIBS += -lglew32 win32:LIBS += -lglew32
macx {
INCLUDEPATH += $(OPENCSGDIR)/include /opt/local/include # Optionally specify location of OpenCSG using the
LIBS += -L$(OPENCSGDIR)/lib # OPENCSGDIR env. variable
OPENCSG_DIR = $$(OPENCSGDIR)
!isEmpty(OPENCSG_DIR) {
INCLUDEPATH += $$OPENCSG_DIR/include
LIBS += -L$$OPENCSG_DIR/lib
} }
} }