On 16/01/2017 10:03, Larry Gritz wrote:
I have written a nice FindOpenImageIO.cmake file that's great for
projects to find the headers & libraries of OIIO. I want to
distribute that as part of OIIO. What's the right place to put it in
the distribution or install area?


On FreeBSD the official cmake modules are installed into
/usr/local/share/cmake/Modules/

WebOS adds a couple to to /usr/local/share/cmake/Modules/webOS

KDE's extra-cmake-modules are installed into
/usr/local/share/ECM/modules/

To use either in your project you add the path to CMAKE_MODULE_PATH in
your projects CMakeLists.txt

Maybe you could use CMAKE_MODULE_PATH to add them to the existing
collection. I would say define OIIO_CMAKE_MODULE_PATH which defaults to
${INSTALL_PREFIX}/share/oiio/modules as a cmake variable which can be
set during configure, probably combined with an INSTALL_MODULE option,
unless you only install it when the path gets defined.

--
FreeBSD - the place to B...Software Developing

Shane Ambler

_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to