-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathqgcoder.pro
98 lines (71 loc) · 2.3 KB
/
qgcoder.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
TARGET = qgcoder
TEMPLATE = app
CONFIG += link_pkgconfig
QMAKE_CXXFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_DEBUG += -O0
QMAKE_CXXFLAGS += -Wno-deprecated-copy
MOC_DIR = .moc
#OBJECTS_DIR = .obj
UI_DIR = .ui
RCC_DIR = .rcc
CONFIG += qgcodeeditor
CONFIG += qglviewer
INCLUDEPATH += g2m
INCLUDEPATH += /usr/include/QGCodeEditor
HEADERS = \
mainwin.h \
view.h \
g2m/canonLine.hpp g2m/canonMotionless.hpp g2m/gplayer.hpp g2m/linearMotion.hpp g2m/nanotimer.hpp \
g2m/canonMotion.hpp g2m/g2m.hpp g2m/helicalMotion.hpp g2m/machineStatus.hpp g2m/point.hpp \
lex_analyzer.hpp settings_dlg.h
SOURCES = \
main.cpp \
mainwin.cpp \
view.cpp \
g2m/canonLine.cpp g2m/canonMotionless.cpp g2m/helicalMotion.cpp g2m/machineStatus.cpp \
g2m/canonMotion.cpp g2m/g2m.cpp g2m/linearMotion.cpp g2m/nanotimer.cpp \
lex_analyzer.cpp settings_dlg.cpp
target.path = /usr/bin
INSTALLS += target
FORMS += \
mainwin.ui settings.ui
link_pkgconfig {
# message("Using pkg-config "$$system(pkg-config --version)".")
LSB_RELEASE_ID = $$system(. /etc/os-release; echo "$NAME")
LSB_RELEASE_REL = $$system(. /etc/os-release; echo "$VERSION_ID")
message(This is $$LSB_RELEASE_ID $$LSB_RELEASE_REL)
contains(LSB_RELEASE_ID, Ubuntu): {
contains(LSB_RELEASE_REL, 21.04) : {
LIBS += -lQGLViewer-qt5 -lGLEW -lGLU -lGL -lglut
}
contains(LSB_RELEASE_REL, 22.04) : {
LIBS += -lQGLViewer-qt5 -lGLEW -lGLU -lGL -lglut
}
contains(LSB_RELEASE_REL, 22.10) : {
LIBS += -lQGLViewer-qt5 -lGLEW -lGLU -lGL -lglut
}
} else {
LIBS += -lQGLViewer-qt5 -lGLEW -lGLU -lGL -lglut
}
}
CONFIG *= debug_and_release
CONFIG *= qt opengl
CONFIG += warn_on
CONFIG += thread
QT *= opengl xml gui core
OTHER_FILES += README.md
unix {
qgcoder-deskop.path = /usr/share/applications
qgcoder-deskop.files = qgcoder.desktop
qgcoder-icon.path = /usr/share/icons/hicolor/256x256/apps
qgcoder-icon.files = icons/qgcoder.png
INSTALLS += qgcoder-deskop
INSTALLS += qgcoder-icon
}
DIRS_DC = object_script.* .ui .moc .rcc .obj *.pro.user $$TARGET
unix:QMAKE_DISTCLEAN += -r $$DIRS_DC
win32:QMAKE_DISTCLEAN += /s /f /q $$DIRS_DC && rd /s /q $$DIRS_DC
DISTFILES += \
icons/qgcoder.png
RESOURCES += \
res.qrc