Hi,
i would like to add a FindXXX.cmake to each of my library packages.
Let's compare CMake with pkgconfig. A package containing a library is
responsible to put a .pc file into /usr/lib/pkgconfig/
"File" "Packages"
/usr/lib/pkgconfig/cspi-1.0.pc libatspi-dev
/usr/lib/pkgconfig/gtk+.pc libgtk1.2-dev
/usr/lib/pkgconfig/json-glib-1.0.pc libjson-glib-dev
/usr/lib/pkgconfig/libepc-1.0.pc libepc-dev
/usr/lib/pkgconfig/vala-1.0.pc libvala-dev
For cmake this could look like this:
"File" "Packages"
/usr/lib/cmake/Findcspi.cmake libatspi-dev
/usr/lib/cmake/Findgtk+.cmake libgtk1.2-dev
/usr/lib/cmake/Findjson-glib.cmake libjson-glib-dev
/usr/lib/cmake/Findlibepc.cmake libepc-dev
/usr/lib/cmake/Findvala.cmake libvala-dev
A package knows best where to find its own include and library
files. To maintain a FindXXX.cmake file should not be the task of CMake.
Where can I put my custom FindXXX.cmake files ? Is it OK to write in
/usr/share/cmake-2.6/Modules/ ??
Cheers
Dominique
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake