[users] Link to CoreAddons for KMacroExpander in config

This commit is contained in:
Adriaan de Groot 2022-04-12 14:10:12 +02:00
parent bb278c7ba9
commit 2c0d9396e2

View File

@ -40,6 +40,7 @@ set(_users_src
Config.cpp Config.cpp
) )
# This part of the code is shared with the usersq module
calamares_add_library( calamares_add_library(
users_internal users_internal
EXPORT_MACRO PLUGINDLLEXPORT_PRO EXPORT_MACRO PLUGINDLLEXPORT_PRO
@ -49,6 +50,7 @@ calamares_add_library(
SOURCES SOURCES
${_users_src} ${_users_src}
LINK_LIBRARIES LINK_LIBRARIES
KF5::CoreAddons
Qt5::DBus Qt5::DBus
${CRYPT_LIBRARIES} ${CRYPT_LIBRARIES}
) )
@ -78,6 +80,7 @@ calamares_add_test(
TestGroupInformation.cpp TestGroupInformation.cpp
${_users_src} # Build again with test-visibility ${_users_src} # Build again with test-visibility
LIBRARIES LIBRARIES
KF5::CoreAddons
Qt5::DBus # HostName job can use DBus to systemd Qt5::DBus # HostName job can use DBus to systemd
${CRYPT_LIBRARIES} # SetPassword job uses crypt() ${CRYPT_LIBRARIES} # SetPassword job uses crypt()
${USER_EXTRA_LIB} ${USER_EXTRA_LIB}
@ -96,6 +99,7 @@ calamares_add_test(
Tests.cpp Tests.cpp
${_users_src} # Build again with test-visibility ${_users_src} # Build again with test-visibility
LIBRARIES LIBRARIES
KF5::CoreAddons
Qt5::DBus # HostName job can use DBus to systemd Qt5::DBus # HostName job can use DBus to systemd
${CRYPT_LIBRARIES} # SetPassword job uses crypt() ${CRYPT_LIBRARIES} # SetPassword job uses crypt()
${USER_EXTRA_LIB} ${USER_EXTRA_LIB}