fix: include auth sources and use Qt version for Sql in CMake

This commit is contained in:
Andrey Kutin 2026-10-23 21:04:10 +03:00
parent ba6faaaf7e
commit 71def5d8ae
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ set(PROJECT_SOURCES
main.cpp
widget.cpp
widget.h
auth.h auth.cpp
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
@ -43,7 +44,7 @@ else()
endif()
target_link_libraries(mysitenews PRIVATE Qt${QT_VERSION_MAJOR}::Widgets
Qt6::Sql
Qt${QT_VERSION_MAJOR}::Sql
)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.