summaryrefslogtreecommitdiff
path: root/opencsg.pri
diff options
context:
space:
mode:
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