Add support for KF6CoreAddons
This commit is contained in:
parent
813aacf791
commit
78a86e6fee
1 changed files with 4 additions and 4 deletions
8
external/kcoreaddons/CMakeLists.txt
vendored
8
external/kcoreaddons/CMakeLists.txt
vendored
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue