[CMake] FindOpenEXR.cmake inclusion in cmake modules?
David Cole
david.cole at kitware.com
Thu Jun 16 07:48:13 EDT 2011
First, ask if the module is really necessary. If, instead, you can add an
OpenEXRConfig.cmake file to the OpenEXR project itself, and install it in a
place that cmake's find_package will automatically find it, then a find
module is unnecessary.
However, if that's not possible or practical, then...
Follow the directions here on becoming a module maintainer:
http://www.cmake.org/Wiki/CMake:Module_Maintainers
If anything is unclear, ask here for clarification.
Thanks,
David
On Wed, Jun 15, 2011 at 11:25 PM, Campbell Barton <ideasman42 at gmail.com>wrote:
> Recently I decided to start moving some of our projects hard coded
> paths into Find***.cmake modules.
>
> Incidentally the libs are libsamplerate, libFFTW3, libsndfile,
> libjemalloc, OpenEXR, OpenJPEG, libpcre.
>
> I started out with OpenEXR, and tried to comply with the module
> readme.txt, and used FindTIFF/Boost/OpenGL as references too.
>
> Heres the module,
>
> https://svn.blender.org/svnroot/bf-blender/trunk/blender/build_files/cmake/Modules/FindOpenEXR.cmake
>
> _after_ writing this I found that there are 3 other projects who also
> wrote their own FindOpenEXR.cmake modules,
>
>
> http://code.google.com/p/nvidia-texture-tools/source/browse/trunk/cmake/FindOpenEXR.cmake?r=HEAD
>
> http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/CMakeModules/FindOpenEXR.cmake?rev=HEAD
> http://www.openlibraries.org/browser/trunk/FindOpenEXR.cmake
>
> From a quick look at all of them I'm not worried that I wrote my own
> since they don't support defining a custom root or follow cmake's
> guidelines very well,
> The main issue with mine is it only works on *nix right now, so MSVC
> support has to be added (which I will add).
>
> If OpenEXR is not considered too niche a library which to bother including,
> whats the best way to get this module included with CMake?
>
> --
> - Campbell
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110616/7f1a7cd1/attachment.htm>
More information about the CMake
mailing list