-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAminoAcidFighterTest.pro
59 lines (46 loc) · 1.15 KB
/
AminoAcidFighterTest.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
# Files
SOURCES += main_test.cpp \
helper_test.cpp \
amino_acid_test.cpp \
bullet_test.cpp \
game_test.cpp \
menu_test.cpp \
player_test.cpp \
winner_screen_test.cpp \
program_test.cpp \
power_type_test.cpp \
power_test.cpp
include(AminoAcidFighter.pri)
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++17
# High warning levels
QMAKE_CXXFLAGS += -Wall -Wextra -Werror
# Debug and release mode
CONFIG += debug_and_release
# Release mode
CONFIG(release, debug|release) {
DEFINES += NDEBUG
QMAKE_CXXFLAGS += -Wno-unused-parameter
}
# Debug mode
CONFIG(debug, debug|release) {
# gcov
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
LIBS += -lgcov
# UBSAN
QMAKE_CXXFLAGS += -fsanitize=undefined
QMAKE_LFLAGS += -fsanitize=undefined
LIBS += -lubsan
}
# QT
QT += core
# Don't do this: use
# SFML
#LIBS += -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
# Boost.Test
LIBS += -lboost_unit_test_framework
# Prevent Qt for failing with this error:
# qrc_[*].cpp:400:44: error: ‘qInitResources_[*]__init_variable__’ defined but not used
# [*]: the resource filename
QMAKE_CXXFLAGS += -Wno-unused-variable
HEADERS +=