Версия с упрощённым GUI

This commit is contained in:
2025-10-25 15:49:45 +03:00
parent 7903775959
commit 805c75b8b7
9 changed files with 774 additions and 0 deletions

43
CMakeLists.txt Normal file
View File

@@ -0,0 +1,43 @@
cmake_minimum_required(VERSION 3.19)
project(minecraft-launcher LANGUAGES CXX)
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets)
qt_standard_project_setup()
qt_add_executable(minecraft-launcher
WIN32 MACOSX_BUNDLE
main.cpp
mainwindow.h mainwindow.cpp
settingsdialog.h settingsdialog.cpp
settingsdialog.ui
mainwindow.ui
)
target_link_libraries(minecraft-launcher
PRIVATE
Qt::Core
Qt::Widgets
)
include(GNUInstallDirs)
install(TARGETS minecraft-launcher
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
qt_generate_deploy_app_script(
TARGET minecraft-launcher
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})