Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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
|
||||
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
|
||||
core
|
||||
)
|
||||
Reference in New Issue
Block a user