summaryrefslogtreecommitdiff
path: root/opencsg.pri
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-05-07 16:24:26 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-05-07 16:24:26 (GMT)
commit0f9802ec3ae9fb6ec453d9401313493debdc3f1a (patch)
treed66e71a59859f02de7cab19533df3bd4e942890f /opencsg.pri
parent838bb59ead12c77b0e64f4843c9d3be0abbf78b0 (diff)
Improved Mac OS X deployment - hopefully this doesn't break builds on other platforms
git-svn-id: http://svn.clifford.at/openscad/trunk@529 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'opencsg.pri')
-rw-r--r--opencsg.pri32
1 files changed, 15 insertions, 17 deletions
diff --git a/opencsg.pri b/opencsg.pri
index c9ed990..a3b70f7 100644
--- a/opencsg.pri
+++ b/opencsg.pri
@@ -1,23 +1,21 @@
opencsg {
+ DEFINES += ENABLE_OPENCSG
+ CONFIG += glew
+ include(glew.pri)
+
HEADERS += src/render-opencsg.h
SOURCES += src/render-opencsg.cc
- DEFINES += ENABLE_OPENCSG
- LIBS += -lopencsg
- unix:LIBS += -lGLEW
- win32:LIBS += -lglew32
-
- # Optionally specify location of OpenCSG using the
- # OPENCSGDIR env. variable
- OPENCSG_DIR = $$(OPENCSGDIR)
- !isEmpty(OPENCSG_DIR) {
- INCLUDEPATH += $$OPENCSG_DIR/include
- LIBS += -L$$OPENCSG_DIR/lib
- message("OpenCSG location: $$CGAL_DIR")
- }
- macx {
- # For glew
- INCLUDEPATH += /opt/local/include
- LIBS += -L/opt/local/lib
+ !deploy {
+ # Optionally specify location of OpenCSG using the
+ # OPENCSGDIR env. variable
+ OPENCSG_DIR = $$(OPENCSGDIR)
+ !isEmpty(OPENCSG_DIR) {
+ INCLUDEPATH += $$OPENCSG_DIR/include
+ LIBS += -L$$OPENCSG_DIR/lib
+ message("OpenCSG location: $$OPENCSG_DIR")
+ }
}
+
+ LIBS += -lopencsg
}
contact: Jan Huwald // Impressum