No longer need Core5Compat
This commit is contained in:
parent
62e0d9fe64
commit
ee6675aee0
@ -170,9 +170,6 @@ endif()
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND QT_COMPONENTS WinExtras)
|
list(APPEND QT_COMPONENTS WinExtras)
|
||||||
endif()
|
endif()
|
||||||
if(QT_MAJOR_VERSION EQUAL 6)
|
|
||||||
list(APPEND QT_COMPONENTS Core5Compat)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS ${QT_COMPONENTS})
|
find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS ${QT_COMPONENTS})
|
||||||
|
|
||||||
@ -182,10 +179,6 @@ set(QtWidgets_LIBRARIES Qt${QT_MAJOR_VERSION}::Widgets)
|
|||||||
set(QtNetwork_LIBRARIES Qt${QT_MAJOR_VERSION}::Network)
|
set(QtNetwork_LIBRARIES Qt${QT_MAJOR_VERSION}::Network)
|
||||||
set(QtSql_LIBRARIES Qt${QT_MAJOR_VERSION}::Sql)
|
set(QtSql_LIBRARIES Qt${QT_MAJOR_VERSION}::Sql)
|
||||||
set(QT_LIBRARIES Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Concurrent Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Network Qt${QT_MAJOR_VERSION}::Sql)
|
set(QT_LIBRARIES Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Concurrent Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Network Qt${QT_MAJOR_VERSION}::Sql)
|
||||||
if(QT_MAJOR_VERSION EQUAL 6)
|
|
||||||
set(QtCore5Compat_LIBRARIES Qt${QT_MAJOR_VERSION}::Core5Compat)
|
|
||||||
list(APPEND QT_LIBRARIES Qt${QT_MAJOR_VERSION}::Core5Compat)
|
|
||||||
endif()
|
|
||||||
if(Qt${QT_MAJOR_VERSION}DBus_FOUND)
|
if(Qt${QT_MAJOR_VERSION}DBus_FOUND)
|
||||||
set(QtDBus_LIBRARIES Qt${QT_MAJOR_VERSION}::DBus)
|
set(QtDBus_LIBRARIES Qt${QT_MAJOR_VERSION}::DBus)
|
||||||
list(APPEND QT_LIBRARIES Qt${QT_MAJOR_VERSION}::DBus)
|
list(APPEND QT_LIBRARIES Qt${QT_MAJOR_VERSION}::DBus)
|
||||||
|
@ -84,8 +84,6 @@ Optional dependencies:
|
|||||||
Either GStreamer or VLC engine is required, but only GStreamer is fully implemented so far.
|
Either GStreamer or VLC engine is required, but only GStreamer is fully implemented so far.
|
||||||
You should also install the gstreamer plugins base and good, and optionally bad and ugly.
|
You should also install the gstreamer plugins base and good, and optionally bad and ugly.
|
||||||
|
|
||||||
With Qt 6 we also depend on the Core5Compat module for QTextCodec.
|
|
||||||
|
|
||||||
### :wrench: Compiling from source
|
### :wrench: Compiling from source
|
||||||
|
|
||||||
### Get the code:
|
### Get the code:
|
||||||
|
@ -35,7 +35,3 @@ target_link_libraries(libstrawberry-tagreader PRIVATE
|
|||||||
${QtNetwork_LIBRARIES}
|
${QtNetwork_LIBRARIES}
|
||||||
libstrawberry-common
|
libstrawberry-common
|
||||||
)
|
)
|
||||||
|
|
||||||
if(BUILD_WITH_QT6)
|
|
||||||
target_link_libraries(libstrawberry-tagreader PRIVATE Qt6::Core5Compat)
|
|
||||||
endif()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user