[CMake] FIND_PACKAGE from another Project

Horacio Sanson hsanson at gmail.com
Mon Jun 9 10:32:34 EDT 2008


On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Friday 06 June 2008, hsanson wrote:
>>  From the CMake 2.4 documentation I get:
>>
>> Directories listed in CMAKE_MODULE_PATH are searched for files called
>> "Find<name>.cmake". If no such file is found, it is expected that the
>> package is another project built by CMake that has a
>> "<name>Config.cmake" file. A cache entry called <name>_DIR is created
>> and is expected to be set to the directory containing this file.
>>
>>
>> It seems that CMake does not generate this "<name>Config.cmake" file nor
>> it sets the cache entry <name>_DIR. If this is the case how can I create
>> the file and the respective cache entry?? and were in my projects
>> CMakeLists.txt files shall I do it??
>

What shall I put inside the <name>Config.cmake file?? is there an
example somewhere??

> You have to set <name>_DIR to the directory where <name>Config.cmake is
> located. <name>Config.cmake should be created by that project (<name>). If
> that project doesn't install such a Config file, you have to use/write a
> Find<name>.cmake file.
>
> What project do you want to use ?
>
> Alex
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list