[CMake] FindOpenEXR.cmake inclusion in cmake modules?

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jun 16 12:54:44 EDT 2011


On Thursday 16 June 2011, David Cole wrote:
> 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/cmak
> > e/Modules/FindOpenEXR.cmake

I think you should not need to set _openexr_SEARCH_DIRS, I think all these 
paths are included in the standard search paths.

> > 
> > _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/F
> > indOpenEXR.cmake?r=HEAD
> > 
> > http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/C
> > MakeModules/FindOpenEXR.cmake?rev=HEAD
> > http://www.openlibraries.org/browser/trunk/FindOpenEXR.cmake

And another one:
http://quickgit.kde.org/?p=kdelibs.git&a=blob&h=405b892d436823ac3b102b4eb0a1126bc168aec7&hb=9be5b41d4e933d019d3d30cead9143b3703d10f4&f=cmake/modules/FindOpenEXR.cmake

Alex


More information about the CMake mailing list