CMake: repair KPMcore helper for KF5 (legacy) case

This commit is contained in:
Adriaan de Groot 2024-11-21 23:42:39 +01:00
parent c83aa1da70
commit 9cc4cb356f

View File

@ -36,7 +36,8 @@ if(NOT TARGET calapmcore)
if(KPMcore_FOUND)
find_package(${qtname} REQUIRED DBus) # Needed for KPMCore
find_package(${kfname} REQUIRED I18n WidgetsAddons) # Needed for KPMCore
find_package(${kfname}I18n REQUIRED) # Needed for KPMCore
find_package(${kfname}WidgetsAddons REQUIRED) # Needed for KPMCore
target_link_libraries(calapmcore INTERFACE kpmcore ${qtname}::DBus ${kfname}::I18n ${kfname}::WidgetsAddons)
target_include_directories(calapmcore INTERFACE ${KPMCORE_INCLUDE_DIR})