summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 14c03dfd509366fdb9d891a0c6863a13e017bd28 (plain)
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
cmake_minimum_required(VERSION 3.28)
project(itat_challenge_olympics)

find_package(Qt6 6.2 COMPONENTS Core Quick Quick REQUIRED)

qt_standard_project_setup(REQUIRES 6.5)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
qt_add_executable(itat_challenge_olympics src/main/main.cpp
        application.qrc
    )


qt_add_qml_module(itat_challenge_olympics
    URI itat
    QML_FILES
        res/gui/application.qml
        res/gui/EventInfoPage.qml
        res/gui/EventsPage.qml

    SOURCES
        src/model/Competitor.cpp
        src/model/Competitor.h
        src/model/CompetitorWithResults.cpp
        src/model/CompetitorWithResults.h
        src/model/EventInfo.cpp
        src/model/EventInfo.h
        src/model/FilterModel.cpp
        src/model/FilterModel.h
        src/model/MedalWinner.cpp
        src/model/MedalWinner.h
        src/model/Sport.cpp
        src/model/Sport.h
    
    RESOURCES
        res/pictograms/ARC_small.svg
        res/pictograms/ATH_small.svg
        res/pictograms/BDM_small.svg
        res/pictograms/BK3_small.svg
        res/pictograms/BKB_small.svg
        res/pictograms/BKG_small.svg
        res/pictograms/BMF_small.svg
        res/pictograms/BMX_small.svg
        res/pictograms/BOX_small.svg
        res/pictograms/CER_small.svg
        res/pictograms/CLB_small.svg
        res/pictograms/CRD_small.svg
        res/pictograms/CSL_small.svg
        res/pictograms/CSP_small.svg
        res/pictograms/CTR_small.svg
        res/pictograms/DIV_small.svg
        res/pictograms/EQU_small.svg
        res/pictograms/FBL_small.svg
        res/pictograms/FEN_small.svg
        res/pictograms/GAR_small.svg
        res/pictograms/GLF_small.svg
        res/pictograms/GRY_small.svg
        res/pictograms/GTR_small.svg
        res/pictograms/HBL_small.svg
        res/pictograms/HOC_small.svg
        res/pictograms/JUD_small.svg
        res/pictograms/MPN_small.svg
        res/pictograms/MTB_small.svg
        res/pictograms/OWS_small.svg
        res/pictograms/ROW_small.svg
        res/pictograms/RU7_small.svg
        res/pictograms/SAL_small.svg
        res/pictograms/SHO_small.svg
        res/pictograms/SKB_small.svg
        res/pictograms/SRF_small.svg
        res/pictograms/SWA_small.svg
        res/pictograms/SWM_small.svg
        res/pictograms/TEN_small.svg
        res/pictograms/TKW_small.svg
        res/pictograms/TRI_small.svg
        res/pictograms/TTE_small.svg
        res/pictograms/VBV_small.svg
        res/pictograms/VVO_small.svg
        res/pictograms/WLF_small.svg
        res/pictograms/WPO_small.svg
        res/pictograms/WRE_small.svg
)

target_link_libraries(itat_challenge_olympics PRIVATE Qt6::Core Qt6::Quick Qt6::Network)

# target_link_libraries(itat_challenge_olympics PRIVATE d3d12.lib dxgi.lib d3dcompiler.lib dxguid.lib)