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
