I have a function that makes simpler to implement a find script for simple
libraries.

mesh_find_package
 (

    ExampleModule
    MODULE_PRETTY_NAME "Example Module - for demonstration purposes only"
    INCLUDE_SEARCH_FILE ExampleModule/ExampleClass.hpp
    INCLUDE_PATH_HINTS */usr/local/include /opt/local/include*

    MODULE_LIBRARIES ExampleModule # this is the name of the
ExampleModule library file without a prefix or extension
    LIBRARY_PATH_HINTS /usr/local/lib /opt/local/lib

    #DEBUG # uncomment this for extra debug info about searching for
the module files
  )


I've included the script and a more complete example below:

   - https://gist.github.com/ahundt/8584263


The function would need to be cleaned up and renamed, perhaps to something
like:

   - find_package_library_script()
   - implement_find_script()


It would be great if a function like this could be added to CMake because
implementing most find scripts would become much easier.

Is there any interest in this functionality?

Cheers!
Andrew Hundt
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to