<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I can't do that because I use QMake instead of CMake. I tried QT
      += KNotifications, but QT return an error unknown project.<br>
    </p>
    <div class="moz-signature">
      <p><img src="cid:part1.B570BFA7.077A99D4@progaccess.net"
          alt="Corentin (certifié Expert NVDA 2019) :"></p>
      <ul style="list-style-type:none;">
        <li>
          <details>
            <summary>Sites Web</summary>
            <ul style="list-style-type:none;">
              <li><a href="https://www.progaccess.net">ProgAccess</a></li>
              <li><a href="https://www.nvda-fr.org">NVDA-FR</a></li>
            </ul>
          </details>
        </li>
        <li>
          <details>
            <summary>Réseaux sociaux</summary>
            <ul style="list-style-type:none;">
              <li><a href="https://www.twitter.com/Oreonan_">Twitter :
                  @Oreonan_</a></li>
              <li>Discord : Oreonan#4463</li>
              <li><a href="https://m.me/corentin.bacquecazenave">Messenger :
                  corentin.bacquecazenave</a></li>
              <li><a href="https://www.snapchat.com/add/cbc33000">Snapchat :
                  cbc33000</a></li>
              <li><a
                  href="https://www.facebook.com/corentin.bacquecazenave">Facebook :
                  corentin.bacquecazenave</a></li>
              <li><a href="https://www.instagram.com/Oreonan/">Instagram :
                  @Oreonan</a></li>
            </ul>
          </details>
        </li>
      </ul>
    </div>
    <div class="moz-cite-prefix">Le 04/04/2021 à 11:34, David Faure a
      écrit :<br>
    </div>
    <blockquote type="cite" cite="mid:2793544.e9J7NaK4W3@asterixp15">
      <pre class="moz-quote-pre" wrap="">On dimanche 4 avril 2021 10:28:37 CEST Corentin BACQUÉ-CAZENAVE wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">I tried to include knotification.h in my project, but I've an error
because knotification_export.h is not found.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
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) 

</pre>
    </blockquote>
  </body>
</html>