1
0
Fork 0

Add support for KF6CoreAddons

This commit is contained in:
Ilya Fedin 2023-10-06 00:16:43 +04:00 committed by John Preston
parent 813aacf791
commit 78a86e6fee

View file

@ -4,13 +4,13 @@
# For license and copyright information please follow this link: # For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL # https://github.com/desktop-app/legal/blob/master/LEGAL
if (DESKTOP_APP_USE_PACKAGED AND QT_VERSION_MAJOR EQUAL 5) if (DESKTOP_APP_USE_PACKAGED)
add_library(external_kcoreaddons INTERFACE IMPORTED GLOBAL) add_library(external_kcoreaddons INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_kcoreaddons ALIAS external_kcoreaddons) add_library(desktop-app::external_kcoreaddons ALIAS external_kcoreaddons)
find_package(KF5CoreAddons) find_package(KF${QT_VERSION_MAJOR}CoreAddons)
if (KF5CoreAddons_FOUND) if (KF${QT_VERSION_MAJOR}CoreAddons_FOUND)
target_link_libraries(external_kcoreaddons INTERFACE KF5::CoreAddons) target_link_libraries(external_kcoreaddons INTERFACE KF${QT_VERSION_MAJOR}::CoreAddons)
return() return()
endif() endif()
endif() endif()