<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 21 nov. 2018 à 09:46, David Demelier <<a href="mailto:markand@malikania.fr">markand@malikania.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 20/11/2018 à 17:03, Harry Mallon a écrit :<br>
> Hi,<br>
> <br>
> FindGTK and FindGTK2 exist in the CMake tree. How come there isn't one for GTK3? Should the GTK2 one work, or is there another way?<br>
<br>
GNOME people don't like CMake (they use meson). The philosophy behind <br>
CMake is to let upstream projects provides their own CMake configuration <br>
packages rather than providing Find modules for every single library <br>
existing in the world.<br></blockquote><div><br></div><div>Right and the fact is even traced here: <a href="https://gitlab.kitware.com/cmake/cmake/issues/15888">https://gitlab.kitware.com/cmake/cmake/issues/15888</a></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
CMake should already not provide any of these, but this general <br>
recommendation came after.<br>
<br>
It's the same thing for pkg-config, pkg-config by itself does not <br>
provide any .pc file.<br>
<br>
Also, Gtk is much more tied to Linux than being portable. I think that's <br>
why portable software don't use Gtk that much and thus, not CMake either.<br></blockquote><div><br></div><div>Some project nevertheless uses GTK3 and CMake so that you may borrow hopefully working</div><div>FindGTK3.cmake module from them:</div><div>E.g.</div><div>Darktable:</div><div><a href="https://redmine.darktable.org/projects/darktable/repository/changes/cmake/modules/FindGTK3.cmake">https://redmine.darktable.org/projects/darktable/repository/changes/cmake/modules/FindGTK3.cmake</a><br></div><div>WebKit:</div><div><a href="https://github.com/WebKit/webkit/blob/master/Source/cmake/FindGTK3.cmake">https://github.com/WebKit/webkit/blob/master/Source/cmake/FindGTK3.cmake</a><br></div></div><div><br></div><div>and probably many others.</div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div></div></div></div>