-
Notifications
You must be signed in to change notification settings - Fork 0
/
quinto.pro
82 lines (63 loc) · 1.65 KB
/
quinto.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
PRECOMPILED_HEADER = src/precompiled.h
HEADERS += \
src/board.h \
src/gui.h \
src/precompiled.h \
src/solver.h \
src/BoardModel.h
SOURCES += \
src/board.cpp \
src/gui.cpp \
src/main.cpp \
src/solver.cpp \
src/BoardModel.cpp
FORMS += \
src/gui.ui
RESOURCES += \
src/gui.qrc
QT += widgets
win32:INCLUDEPATH += C:\boost_1_56_0
QMAKE_CXXFLAGS += -openmp
TARGET = quinto
unix:TARGET = quinto.bin
#----------
CONFIG(release, debug|release) {
SUBDIR = release
} else {
SUBDIR = debug
}
#----------
linux-g++ {
COMPILER = g++
}
win32-msvc2012 {
COMPILER = msvc2012
}
win32-msvc2013 {
COMPILER = msvc2013
}
win32-g++ {
COMPILER = mingw
}
#----------
unix {
IN_EXE = $${OUT_PWD}/$${TARGET}
OUT_DIR = $${IN_PWD}/bin/unix-$${QT_ARCH}-$${COMPILER}-$${SUBDIR}
OUT_EXE = $${OUT_DIR}/$${TARGET}
QMAKE_POST_LINK += mkdir -p $${OUT_DIR}
QMAKE_POST_LINK += &&
QMAKE_POST_LINK += cp -f $${IN_EXE} $${OUT_EXE}
}
win32 {
IN_EXE = $${OUT_PWD}\\$${SUBDIR}\\$${TARGET}.exe
IN_EXE ~= s,/,\\,g
OUT_DIR = $${IN_PWD}\\bin\\win32-$${QT_ARCH}-qt$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}-$${COMPILER}-$${SUBDIR}
OUT_EXE = $${OUT_DIR}\\$${TARGET}.exe
OUT_DIR ~= s,/,\\,g
OUT_EXE ~= s,/,\\,g
QMAKE_POST_LINK += (if not exist $${OUT_DIR} ( mkdir $${OUT_DIR} ))
QMAKE_POST_LINK += &&
QMAKE_POST_LINK += copy /Y $${IN_EXE} $${OUT_EXE}
QMAKE_POST_LINK += &&
QMAKE_POST_LINK += windeployqt --force --no-webkit2 --no-system-d3d-compiler --no-translations --no-quick-import $${OUT_EXE}
}