cmake_minimum_required(VERSION 3.24) project(prodejna) include(../3rdparty/QxOrm/QxOrm.cmake) set(CMAKE_CXX_STANDARD 17) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) find_package(Qt6 COMPONENTS Core Gui Widgets Sql Qml REQUIRED) include_directories(../core) add_executable(prodejna main.cpp appRc.qrc application.cpp application.h logindialog.cpp logindialog.h logindialog.ui mainwindow.cpp mainwindow.h mainwindow.ui) target_link_libraries(prodejna Qt::Core Qt::Gui Qt::Widgets Qt::Sql Qt::Qml core )