roulette-payout/CMakeLists.txt

55 lines
1.2 KiB
Text
Raw Normal View History

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
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}
)
qt_add_qml_module(roulette-payout
URI roulette
# 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
VERSION 1.0
RESOURCE_PREFIX "/"
QML_FILES
Root.qml
BetInputDialog.qml
BetButton.qml
PlayerAreaView.qml
2024-06-01 01:14:46 +01:00
Roulette.qml
StreetBetsView.qml
Columns.qml
2024-06-05 07:02:33 +01:00
Dozens.qml
2024-06-05 07:52:49 +01:00
Singles.qml
RedBlack.qml
2024-06-06 08:11:37 +01:00
EvenOdd.qml
2024-06-06 08:17:49 +01:00
LowHigh.qml
)
target_link_libraries(roulette-payout PRIVATE
Qt6::Gui
Qt6::QuickControls2
Qt6::Quick)