summaryrefslogtreecommitdiff
path: root/openscad.pro
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-13 00:22:07 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-13 00:22:07 (GMT)
commit0847ea818b20fdd9ab8eaa835ddcc454b5fd51db (patch)
tree40fc175cd9c160da133aac59a786573b8047e82c /openscad.pro
parent6628f644d203733b281caac7cc52848908f2567b (diff)
Slowly getting the build system under control, added version number in app, added OpenSCAD to window title, note that VERSION needs to be set for deployment in the deployment scripts
git-svn-id: http://svn.clifford.at/openscad/trunk@168 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.pro')
-rw-r--r--openscad.pro69
1 files changed, 42 insertions, 27 deletions
diff --git a/openscad.pro b/openscad.pro
index 23e076e..7ba2580 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -1,42 +1,60 @@
+isEmpty(VERSION) VERSION = 9999.99
+DEFINES += OPENSCAD_VERSION=$$VERSION
+TEMPLATE = app
macx {
- TARGET = OpenSCAD
- ICON = OpenSCAD.icns
- QMAKE_INFO_PLIST = Info.plist
+ TARGET = OpenSCAD
+ ICON = OpenSCAD.icns
+ QMAKE_INFO_PLIST = Info.plist
+ #CONFIG += x86 ppc
}
else {
- TARGET = openscad
+ TARGET = openscad
}
CONFIG += qt
-TEMPLATE = app
+QT += opengl
+# Application configuration
CONFIG += debug
# CONFIG += release
-QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentium
-QMAKE_CXXFLAGS_DEBUG = -O0 -ggdb
-
-# MDI needs an OpenCSG library that is compiled with OpenCSG-Reset-Hack.patch applied
-DEFINES += ENABLE_MDI
+#CONFIG += mdi
+CONFIG += cgal
+CONFIG += opencsg
-DEFINES += ENABLE_CGAL
-LIBS += -lCGAL
-
-macx {
- INCLUDEPATH += $(PWD)/../install/include $(PWD)/../OpenCSG-1.1.1/include /opt/local/include
- # The -L/usr/lib is to force the linker to use system libraries over MacPort libraries
- LIBS += -L/usr/lib -L$(PWD)/../install/lib -L$(PWD)/../OpenCSG-1.1.1/lib -L/opt/local/lib /opt/local/lib/libgmp.a /opt/local/lib/libmpfr.a /opt/local/lib/libboost_thread-mt.a
- QMAKE_CXXFLAGS += -frounding-math
+mdi {
+ # MDI needs an OpenCSG library that is compiled with OpenCSG-Reset-Hack.patch applied
+ DEFINES += ENABLE_MDI
}
-else {
- LIBS += -lmpfr
+
+cgal {
+ DEFINES += ENABLE_CGAL
+ LIBS += -lCGAL
+ macx {
+ INCLUDEPATH += $(PWD)/../install/include /opt/local/include
+ # The -L/usr/lib is to force the linker to use system libraries over MacPort libraries
+ LIBS += -L/usr/lib -L$(PWD)/../install/lib -L/opt/local/lib /opt/local/lib/libgmp.a /opt/local/lib/libmpfr.a /opt/local/lib/libboost_thread-mt.a
+ QMAKE_CXXFLAGS += -frounding-math
+ }
+ else {
+ LIBS += -lmpfr
+ }
+ win32:LIBS += -lboost_thread -lgmp
}
-DEFINES += ENABLE_OPENCSG
-LIBS += -lopencsg
+opencsg {
+ DEFINES += ENABLE_OPENCSG
+ LIBS += -L/opt/local/lib -lopencsg
+ unix:LIBS += -lGLEW
+ win32:LIBS += -lglew32
+ macx {
+ INCLUDEPATH += $(PWD)/../OpenCSG-1.1.1/include /opt/local/include
+ LIBS += -L$(PWD)/../OpenCSG-1.1.1/lib
+ }
+}
-unix:LIBS += -lGLEW
-win32:LIBS += -lglew32 -lboost_thread -lgmp
+QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentium
+QMAKE_CXXFLAGS_DEBUG = -O0 -ggdb
LEXSOURCES += lexer.l
YACCSOURCES += parser.y
@@ -58,8 +76,5 @@ SOURCES += openscad.cc mainwin.cc glview.cc export.cc \
dxflinextrude.cc dxfrotextrude.cc highlighter.cc \
printutils.cc
-QT += opengl
-
target.path = /usr/local/bin/
INSTALLS += target
-
contact: Jan Huwald // Impressum