-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep-gdml.pro
102 lines (73 loc) · 2.44 KB
/
step-gdml.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
!build_pass:message("Configuring for build...")
TEMPLATE = app
CONFIG += debug_and_release qt
#################
### VARIABLES ###
#################
CASROOT = /opt/opencascade-7.4.0
OCCLIB = $$CASROOT/build/lin64/gcc/lib
!build_pass:message (CASROOT is > $$CASROOT)
!build_pass:message (OCCLIB is > $$OCCLIB)
HEADERS = src/util.h \
src/window.h \
src/translate.h \
src/gdmlwriter.h \
src/metadata.h \
src/helpdialog.h \
src/viewer.h \
SOURCES = src/main.cpp \
src/util.cpp \
src/window.cpp \
src/translate.cpp \
src/gdmlwriter.cpp \
src/helpdialog.cpp \
src/viewer.cpp \
src/triangulate.cpp \
OTHER_FILES= .astylerc
DESTDIR = .
OBJECTS_DIR = ./build/obj
MOC_DIR = ./build/moc
RCC_DIR = ./build/rcc
DEFINES = CSFDB
############
#### QT ####
############
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
lessThan(QT_MAJOR_VERSION, 5): DEFINES += QT_NO_DEPRECATED
!build_pass:message("Using QT$$QT_MAJOR_VERSION")
##################
#### INCLUDES ####
##################
INCLUDEPATH = $$CASROOT \
$$CASROOT/inc \
$$CASROOT/include/opencascade \
$(QTDIR)/include/QtCore \
$(QTDIR)/include/QtGui \
$(QTDIR)/include
INCLUDEPATH += $$QMAKE_INCDIR_X11 \
$$QMAKE_INCDIR_OPENGL \
$$QMAKE_INCDIR_THREAD
DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H
##############
#### LIBS ####
##############
# To place CASROOT before -L/usr/lib in case we !build_pass:message("This message should appear only once")override it
#QMAKE_CXXFLAGS += -fsanitize=address
#QMAKE_LFLAGS += -fsanitize=address
QMAKE_LFLAGS += -L$$OCCLIB
LIBS += -lTKernel -lTKMath -lTKService -lTKV3d -lTKOpenGl \
-lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
-lTKSTEPBase -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
-lTKXSBase -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
-lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset
#Note: -lTKXSDRAW leads to a crash on unload.
LIBS += -lTKCAF -lTKLCAF -lTKXCAF -lTKXDESTEP -lTKVCAF
LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11
LIBS += -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
!build_pass:message (OK! Build succesful...!)
#################
#### TARGETS ####
#################
TARGET = step-gdml
!build_pass:message (Target file is > $$TARGET)