[CMake] Finding packagaes build with CMake

Klaus loeffel77 at yahoo.com
Thu Mar 5 06:21:08 EST 2009


Hi,

after looking through the documentation of CMake, I am a litte confused, how
to help CMake to find packages  bulit by CMake.

The "find_package" command supports both xxx-config.cmake and
FindXXX.cmake. What is the prefered method for an package which was built by 
CMake to be "found"? Should it provide a xxx-config.cmake or a FindXXX.cmake
file?

Is there any mechanism in CMake wich helps to create xxx-config.cmake files?
Should the import/export feature be used within the xxx-config.cmake files, or
is this a bad idea?
And finally, is there a way to get the "real" install destination of the
"install" command? Depending on wheather the destination is a realtive or
absulute path, the "install" command either prepends "CMAKE_INSTALL_PREFIX" or
not. However the complete path (either with or without prefix) is needed
within the xxx-config.cmake file.

Thanks in advance for your answers,

Cheers, Klaus. 


      


More information about the CMake mailing list