[cmake-developers] Targets for FindGTK2.cmake

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Mon Aug 5 11:00:52 EDT 2013


Hello all,

I'd like to introduce imported targets in FindGTK2.cmake, in a similar
manner as they are used in FindQT4.cmake.

The aim is to be able to do something like:

   find_package(GTK2 gtk gtkmm)
   target_link_libraries(<target> GTK2::gtkmm)

(In the future I want to handle dependencies on modules as well, at the
moment I think that if you don't include the gtk module it will not work)

If you want to review my changes, you can checkout the FindGTK2-targets
topic. I tested it on Windows and Linux, but unfortunately there are not
unit tests afaik.



Cheers,
 Daniele



More information about the cmake-developers mailing list