Migrates cmake targets under folder ./Z to Qt6
This commit is contained in:
10 files changed
+791
-22
No files matched your search
@@ -22,7 +22,7 @@ ADD_SUBDIRECTORY(nglsettings)
|
||||
ADD_SUBDIRECTORY(ngltranslator)
|
||||
ADD_SUBDIRECTORY(ngltools)
|
||||
# nglwidgets requires Qt6 Widgets - skip if not available
|
||||
if((QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets) OR QT5_FOUND)
|
||||
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
|
||||
ADD_SUBDIRECTORY(nglwidgets)
|
||||
else()
|
||||
message(WARNING "nglwidgets skipped: Qt6 Widgets not available")
|
||||
|
||||
@@ -15,6 +15,7 @@ SET(qtsapp_common_SRCS
|
||||
qtlocalpeer.h
|
||||
)
|
||||
NGL_ADD_LIBRARY(WS AAR SV qtsa_common STATIC ${qtsapp_common_SRCS})
|
||||
SET_TARGET_PROPERTIES(qtsa_common PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
NGL_TARGET_LINK_LIBRARIES(qtsa_common
|
||||
PUBLIC
|
||||
Qt6::Network
|
||||
|
||||
@@ -57,21 +57,27 @@ SET(nglwidgets_SRCS
|
||||
ngldialog.h
|
||||
nglmainwindow.cpp
|
||||
nglmainwindow.h
|
||||
nglpdfdocument.cpp
|
||||
nglpdfdocument.h
|
||||
nglpdfpage.cpp
|
||||
nglpdfpage.h
|
||||
nglstandardbutton.cpp
|
||||
nglstandardbutton.h
|
||||
ngltreeitem.cpp
|
||||
ngltreeitem.h
|
||||
ngltreemodel.cpp
|
||||
ngltreemodel.h
|
||||
nglpdfwidget.cpp
|
||||
nglpdfwidget.h
|
||||
nglwidgets_export.h
|
||||
)
|
||||
|
||||
# PDF support files - only included when Poppler-Qt6 is available
|
||||
if(HAVE_POPPLER_QT6)
|
||||
list(APPEND nglwidgets_SRCS
|
||||
nglpdfdocument.cpp
|
||||
nglpdfdocument.h
|
||||
nglpdfpage.cpp
|
||||
nglpdfpage.h
|
||||
nglpdfwidget.cpp
|
||||
nglpdfwidget.h
|
||||
)
|
||||
endif()
|
||||
|
||||
NGL_WRAP_UI(nglwidgets_SRCS
|
||||
nglpdfwidget.ui
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user