KNotifications usage

David Faure faure at kde.org
Sun Apr 4 10:34:26 BST 2021


On dimanche 4 avril 2021 10:28:37 CEST Corentin BACQUƉ-CAZENAVE wrote:
> I tried to include knotification.h in my project, but I've an error
> because knotification_export.h is not found.

Do you link to KF5::Notifications?

Linking to a target brings in the include dirs, that's the modern cmake way.

Of course before that you need 
    find_package(KF5Notifications CONFIG REQUIRED) 

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5





More information about the Kde-frameworks-devel mailing list