-
Notifications
You must be signed in to change notification settings - Fork 0
/
LipidSpace.pro
158 lines (135 loc) · 5.24 KB
/
LipidSpace.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
155
156
157
158
versionAtLeast(QT_VERSION, 6.0.0) {
QT += core gui printsupport widgets svg svgwidgets network
}
!versionAtLeast(QT_VERSION, 6.0.0) {
QT += core gui printsupport widgets svg network
}
CONFIG += c++17 debug_and_release
QMAKE_CXXFLAGS += -fopenmp -std=c++17 -Wno-unknown-pragmas
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
RC_ICONS = LipidSpace.ico
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_EXTRA_TARGETS += build buildclean
unix {
LIBS += -fopenmp -Wl,-rpath="'\\\${ORIGIN}'" "-L$$PWD/libraries/cppgoslin/bin/linux64" "-lcppGoslin" "-L$$PWD/libraries/OpenBLAS/bin/linux64" "-lopenblas" "-L$$PWD/libraries/OpenXLSX/bin/linux64" "-lOpenXLSX"
}
win32 {
LIBS += -fopenmp $$PWD\libraries\cppgoslin\bin\win64\libcppGoslin.dll $$PWD\libraries\OpenBLAS\bin\win64\libopenblas.dll $$PWD\libraries\OpenXLSX\bin\win64\libOpenXLSX.dll
}
macx {
#LIBS += -fopenmp $$PWD/libraries/cppgoslin/bin/win64/libcppGoslin.dll $$PWD/libraries/OpenBLAS/bin/win64/libopenblas.dll libraries/OpenXLSX/bin/win64/libOpenXLSX.dll
}
INCLUDEPATH += $$PWD/libraries/OpenXLSX/include
DEPENDPATH += $$PWD/libraries/OpenXLSX/include
INCLUDEPATH += $$PWD/libraries/OpenBLAS/include
DEPENDPATH += $$PWD/libraries/OpenBLAS/include
INCLUDEPATH += $$PWD/libraries/cppgoslin
DEPENDPATH += $$PWD/libraries/cppgoslin
INCLUDEPATH += $$PWD/libraries/nlohmann
DEPENDPATH += $$PWD/libraries/nlohmann
#INCLUDEPATH += $$PWD/libraries/cpp-httplib
#DEPENDPATH += $$PWD/libraries/cpp-httplib
#INCLUDEPATH += $$PWD/libraries/openssl
#DEPENDPATH += $$PWD/libraries/openssl
SOURCES += \
src/about.cpp \
src/filterdialog.cpp \
src/importtable.cpp \
src/selectlipidomes.cpp \
src/selectpc.cpp \
src/select_worksheet.cpp \
src/globaldata.cpp \
src/setalpha.cpp \
src/setPCnum.cpp \
src/progressbar.cpp \
src/managelipidomes.cpp \
src/MainWindow.cpp \
src/lipidspacegui.cpp \
src/Matrix.cpp \
src/AssistanceFunctions.cpp \
src/lipidspace.cpp \
src/canvas.cpp \
src/logging.cpp \
src/statistics.cpp \
src/Tutorial.cpp \
src/chart.cpp \
src/chartplot.cpp \
src/plots.cpp \
src/studyvariablemapping.cpp \
src/changecolordialog.cpp
HEADERS += \
lipidspace/about.h \
lipidspace/filterdialog.h \
lipidspace/globaldata.h \
lipidspace/importtable.h \
lipidspace/lipidspacegui.h \
lipidspace/canvas.h \
lipidspace/Matrix.h \
lipidspace/lipidspace.h \
lipidspace/AssistanceFunctions.h \
lipidspace/matplotlibcpp.h \
lipidspace/managelipidomes.h \
lipidspace/progressbar.h \
lipidspace/selectlipidomes.h \
lipidspace/selectpc.h \
lipidspace/select_worksheet.h \
lipidspace/setalpha.h \
lipidspace/setPCNum.h \
lipidspace/logging.h \
lipidspace/statistics.h \
lipidspace/Tutorial.h \
lipidspace/chart.h \
lipidspace/chartplot.h \
lipidspace/plots.h \
lipidspace/studyvariablemapping.h \
lipidspace/changecolordialog.h
FORMS += \
ui/about.ui \
ui/filterdialog.ui \
ui/importtable.ui \
ui/lipidspacegui.ui \
ui/managelipidomes.ui \
ui/progressbar.ui \
ui/selectlipidomes.ui \
ui/selectpc.ui \
ui/setalpha.ui \
ui/setPCnum.ui \
ui/select_worksheet.ui \
ui/studyvariablemapping.ui \
ui/changecolordialog.ui
release:UI_DIR += objects
release:MOC_DIR += objects
unix {
build.depends = release
build.commands += mkdir -p $$PWD/Build
build.commands += && mkdir -p $$PWD/Build/LipidSpace
build.commands += && mkdir -p $$PWD/Build/LipidSpace/data
build.commands += && mkdir -p $$PWD/Build/LipidSpace/examples
build.commands += && cp $$PWD/LipidSpace $$PWD/Build/LipidSpace
build.commands += && cp $$PWD/libraries/cppgoslin/bin/linux64/* $$PWD/Build/LipidSpace
build.commands += && cp $$PWD/libraries/OpenBLAS/bin/linux64/* $$PWD/Build/LipidSpace
build.commands += && cp $$PWD/libraries/OpenXLSX/bin/linux64/* $$PWD/Build/LipidSpace
build.commands += && cp $$PWD/libraries/Qt/bin/linux64/* $$PWD/Build/LipidSpace
build.commands += && cp $$PWD/data/classes-matrix.csv $$PWD/Build/LipidSpace/data
build.commands += && cp -r $$PWD/data/images $$PWD/Build/LipidSpace/data
build.commands += && cp $$PWD/examples/Example-Dataset.xlsx $$PWD/Build/LipidSpace/examples
build.commands += && cp $$PWD/examples/ThreeStudies.xlsx $$PWD/Build/LipidSpace/examples
build.commands += && cp $$PWD/LICENSE* $$PWD/Build/LipidSpace
build.commands += && cd $$PWD/Build && zip -9 -r LipidSpace.zip LipidSpace
buildclean.depends = clean
buildclean.commands += rm -rf $$PWD/Build
}
win32 {
#build.depends = release
build.commands += .\win-build.bat
#buildclean.depends = clean
buildclean.commands += del /f \"$$PWD/Build\"
}