I can't do that because I use QMake instead of CMake. I tried QT +=
KNotifications, but QT return an error unknown project.
Corentin (certifié Expert NVDA 2019) :
* Sites Web
o ProgAccess <https://www.progaccess.net>
o NVDA-FR <https://www.nvda-fr.org>
* Réseaux sociaux
o Twitter : @Oreonan_ <https://www.twitter.com/Oreonan_>
o Discord : Oreonan#4463
o Messenger : corentin.bacquecazenave
<https://m.me/corentin.bacquecazenave>
o Snapchat : cbc33000 <https://www.snapchat.com/add/cbc33000>
o Facebook : corentin.bacquecazenave
<https://www.facebook.com/corentin.bacquecazenave>
o Instagram : @Oreonan <https://www.instagram.com/Oreonan/>
Le 04/04/2021 à 11:34, David Faure a écrit :
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)