2024-05-31 12:10:00 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
project(roulette-payout VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
find_package(Qt6 6.2 COMPONENTS Core Widgets QuickControls2 Gui REQUIRED)
|
|
|
|
|
|
|
|
qt_standard_project_setup()
|
|
|
|
|
2024-06-01 01:14:46 +01:00
|
|
|
qt_add_resources(QRC res.qrc)
|
|
|
|
set(SOURCES
|
2024-05-31 12:10:00 +01:00
|
|
|
main.cpp
|
|
|
|
MainWindow.cpp
|
|
|
|
MainWindow.h
|
|
|
|
PlayerAreaModel.cpp
|
|
|
|
PlayerAreaModel.h
|
2024-06-01 01:14:46 +01:00
|
|
|
${QRC})
|
|
|
|
|
|
|
|
qt_add_executable(roulette-payout
|
|
|
|
${SOURCES}
|
2024-05-31 12:10:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
qt_add_qml_module(roulette-payout
|
|
|
|
URI roulette
|
2024-06-04 21:10:39 +01:00
|
|
|
# without this no resource flag, when you load qml files with qrc:// urls
|
|
|
|
# qt will look for the files in RESOURCE_PREFIX + URI aka /roulette
|
|
|
|
# we don't want a roulette folder in our project, so we use this flag
|
|
|
|
# to ignore the "+ URI" part
|
|
|
|
NO_RESOURCE_TARGET_PATH
|
2024-05-31 12:10:00 +01:00
|
|
|
VERSION 1.0
|
|
|
|
RESOURCE_PREFIX "/"
|
|
|
|
QML_FILES
|
|
|
|
Root.qml
|
2024-06-02 21:13:43 +01:00
|
|
|
BetInputDialog.qml
|
2024-06-04 22:14:26 +01:00
|
|
|
BetButton.qml
|
2024-05-31 12:10:00 +01:00
|
|
|
PlayerAreaView.qml
|
2024-06-01 01:14:46 +01:00
|
|
|
Roulette.qml
|
|
|
|
StreetBetsView.qml
|
2024-06-04 21:10:39 +01:00
|
|
|
Columns.qml
|
2024-06-05 07:02:33 +01:00
|
|
|
Dozens.qml
|
2024-06-05 07:52:49 +01:00
|
|
|
Singles.qml
|
2024-06-05 23:25:19 +01:00
|
|
|
RedBlack.qml
|
2024-06-06 08:11:37 +01:00
|
|
|
EvenOdd.qml
|
2024-06-06 08:17:49 +01:00
|
|
|
LowHigh.qml
|
2024-06-04 21:10:39 +01:00
|
|
|
|
2024-05-31 12:10:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(roulette-payout PRIVATE
|
|
|
|
Qt6::Gui
|
|
|
|
Qt6::QuickControls2
|
|
|
|
Qt6::Quick)
|