-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlines.pro
54 lines (43 loc) · 908 Bytes
/
lines.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
TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on release link_pkgconfig c++14
QT += widgets
HEADERS += $$files(*.hpp, true)
SOURCES += $$files(*.cpp, true)
INCLUDEPATH += $$PWD/src
packagesExist(GraphicsMagick++) {
PKGCONFIG += GraphicsMagick++
DEFINES += MULTIPAGE
} else:packagesExist(Magick++) {
PKGCONFIG += Magick++
DEFINES += MULTIPAGE
}
packagesExist(luajit) {
PKGCONFIG += luajit
DEFINES += LUARULES
} else: packagesExist(lua) {
PKGCONFIG += lua
DEFINES += LUARULES
}
packagesExist(fftw3) {
PKGCONFIG += fftw3
DEFINES += FFTWPROGS
}
gcc|clang {
QMAKE_CXXFLAGS += -ffast-math -fopenmp
QMAKE_LFLAGS += -fopenmp
}
linux-clang {
system(clang++ --version | grep 'version.3.[0-8]') {
DEFINES += _OPENMP=201107
QMAKE_CXXFLAGS += -Wno-macro-redefined
}
}
unix {
MOC_DIR = .moc
OBJECTS_DIR = .obj
}
msvc {
DEFINES += _USE_MATH_DEFINES
QMAKE_CXXFLAGS += /fp:fast /openmp
}