Reminder: use KF5::foo instead of ${foo_LIBRARIES} in CMakeLists
Martin Gräßlin
mgraesslin at kde.org
Wed Sep 25 08:36:46 UTC 2013
Hi all,
just a short reminder. When adjusting a CMakeLists.txt to Qt5 to enable e.g. a
dataengine please use the new namespace syntax in target_link_libraries. E.g:
target_link_libraries(plasma_engine_notifications
Qt5::DBus
KF5::KI18n
KF5::KIconThemes
KF5::KIOCore
KF5::KNotifications
KF5::plasma
KF5::KService
${KDE4_KNOTIFYCONFIG_LIBRARY}
)
and not
target_link_libraries(plasma_engine_notifications
Qt5::DBus
${Plasma_LIBRARIES}
${KI18n_LIBRARIES}
${KIconThemes_LIBRARIES}
${KNotifications_LIBRARIES}
${KService_LIBRARIES}
${KDE4_KIO_LIBS}
${KDE4_KNOTIFYCONFIG_LIBRARY}
)
I just spent the last half our fixing linker errors as ${KI18n_LIBRARIES}
didn't exist any more.
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130925/ef1916d8/attachment.sig>
More information about the Plasma-devel
mailing list