-
Notifications
You must be signed in to change notification settings - Fork 1
/
game.pro
47 lines (35 loc) · 1.06 KB
/
game.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
# This is the general project file,
# to be used to simply run the game.
#
# Other .pro files are used for specific tasks,
# such as codecov or profiling
# On GHA, this DEFINE is added in the .yaml script
#
#DEFINES += LOGIC_ONLY
# All files are in here, the rest are just settings
include(game.pri)
include(game_view.pri)
TARGET = conquer_chess
# Use the C++ version that all team members can use
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++17
# High warning levels
QMAKE_CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic
# Debug and release settings
CONFIG += debug_and_release
CONFIG(release, debug|release) {
DEFINES += NDEBUG
}
CONFIG(debug, debug|release) {
# High warning levels
QMAKE_CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic
# A warning is an error
QMAKE_CXXFLAGS += -Werror
# gcov
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
LIBS += -lgcov
}
# Qt5
QT += core gui widgets
LIBS += -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
#INCLUDEPATH += ../magic_enum