fix: include auth sources and use Qt version for Sql in CMake
This commit is contained in:
parent
ba6faaaf7e
commit
71def5d8ae
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue