-
Notifications
You must be signed in to change notification settings - Fork 20
/
cnc-qt.pro
154 lines (122 loc) · 4.42 KB
/
cnc-qt.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-10T22:49:41
#
#-------------------------------------------------
QT += core gui opengl
# TRANSLATIONS = cnc-qt.ts
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = cncqt
TEMPLATE = app
DESTDIR = build
OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.ui
# TODO: please check this
win32:INCLUDEPATH += $$PWD/windows
win32:INCLUDEPATH += C:/libusb-1.0.19/libusb
win32:INCLUDEPATH += C:/Program Files (x86)/libusb-1.0.19
win32:DEPENDPATH += C:/Program Files (x86)/libusb-1.0.19/libusb
win32:DEPENDPATH += C:/libusb-1.0.19/libusb
win32:DEPENDPATH += $$PWD/windows
win64:INCLUDEPATH += $$PWD/windows
win64:INCLUDEPATH += C:/libusb-1.0.19/libusb
win64:INCLUDEPATH += C:/libusb-1.0.19/libusb
win64:INCLUDEPATH +=C:/Program Files/libusb-1.0.19
win64:DEPENDPATH += C:/Program Files/libusb-1.0.19/libusb
win64:DEPENDPATH += C:/libusb-1.0.19/libusb
# contains(QT_ARCH, i386) {
# win32:INCLUDEPATH += C:/libusb-1.0.19/libusb
# win32:INCLUDEPATH += C:/Program Files (x86)/libusb-1.0.19
# win32:DEPENDPATH += C:/Program Files (x86)/libusb-1.0.19/libusb
# win32:DEPENDPATH += C:/libusb-1.0.19/libusb
# win32:message("32-bit")
# } else {
# win32:INCLUDEPATH += C:/libusb-1.0.19/libusb
# win32:INCLUDEPATH +=C:/Program Files/libusb-1.0.19
# win32:DEPENDPATH += C:/Program Files/libusb-1.0.19/libusb
# win32:DEPENDPATH += C:/libusb-1.0.19/libusb
# win32:message("64-bit")
# }
# TODO: please add this for macx
# macx
unix:INCLUDEPATH +=/usr/local/include/
unix:INCLUDEPATH +=/usr/local/include/libusb-1.0/
unix:INCLUDEPATH +=/usr/include/libusb-1.0/
SOURCES += sources/About.cpp \
sources/GCode.cpp \
sources/GLWidget.cpp \
sources/MainWindow.cpp \
sources/mk1Controller.cpp \
sources/ScanSurface.cpp \
sources/Translator.cpp \
sources/EditGCode.cpp \
sources/Geometry.cpp \
sources/main.cpp \
sources/sControl.cpp \
sources/sIO.cpp \
sources/sMaterial.cpp \
sources/sParser.cpp \
sources/sSpeed.cpp \
sources/sSystem.cpp \
sources/sVis.cpp \
sources/sWorkbench.cpp \
sources/SettingsDialog.cpp \
sources/Reader.cpp \
sources/Settings.cpp
HEADERS += sources/includes/About.h \
sources/includes/GCode.h \
sources/includes/GLWidget.h \
sources/includes/sControl.h \
sources/includes/sIO.h \
sources/includes/sMaterial.h \
sources/includes/sParser.h \
sources/includes/sSpeed.h \
sources/includes/sSystem.h \
sources/includes/sVis.h \
sources/includes/sWorkbench.h \
sources/includes/SettingsDialog.h \
sources/includes/Reader.h \
sources/includes/Settings.h \
sources/includes/version.h \
sources/includes/EditGCode.h \
sources/includes/Geometry.h \
sources/includes/MainWindow.h \
sources/includes/mk1Controller.h \
sources/includes/ScanSurface.h \
sources/includes/Translator.h
FORMS += sources/forms/About.ui \
sources/forms/CodeGenerator.ui \
sources/forms/EditGCode.ui \
sources/forms/MainWindow.ui \
sources/forms/ScanSurface.ui \
sources/forms/sControl.ui \
sources/forms/sIO.ui \
sources/forms/sParser.ui \
sources/forms/sMaterial.ui \
sources/forms/sSpeed.ui \
sources/forms/sSystem.ui \
sources/forms/sWorkbench.ui \
sources/forms/sVis.ui \
sources/forms/Settings.ui
# TRANSLATIONS = sources/translations/cnc_qt_en.ts \
# sources/translations/cnc_qt_ru.ts \
# sources/translations/cnc_qt_de.ts
# TODO: please check this
win32:LIBS += -L$$PWD/windows/ -lusb-1.0
# contains(QT_ARCH, i386) {
# win32:LIBS += -LC:/Program Files (x86)/\libusb-1.0.19\Win32\Debug\lib\libusb-1.0
# win32:LIBS += -LC:\libusb-1.0.19\Win32\Debug\lib\libusb-1.0
# win32:message("32-bit")
# } else {
# win32:LIBS += -LC:/Program Files/\libusb-1.0.19\Win32\Debug\lib\libusb-1.0
# win32:LIBS += -LC:\libusb-1.0.19\Win32\Debug\lib\libusb-1.0
# win32:message("64-bit")
# }
# TODO: please add this for macx
# macx:LIBS +=
unix:!macx: LIBS += -L/usr/local/lib -lusb-1.0
RESOURCES += sources/CNC-Qt.qrc
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS_RELEASE += -O3