Alexander Neundorf wrote:
On Monday 09 June 2008, Horacio Sanson wrote:
On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf

<[EMAIL PROTECTED]> 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??

I think e.g vtk installs such a file.
Also automoc4 installs a very simple one:
http://websvn.kde.org/trunk/kdesupport/automoc/
But this one won't help you a lot.

Which project do you want to use ?
Probably you will want to write a FindFoo.cmake file for it, which will contain mostly FIND_LIBRARY() and FIND_PATH() calls.

Thanks, I already have Find<name>.cmake files for all my projects (libraries I am implementing) and I can use them. The problem is that by using Find<name>.cmake files I am forced to compile and install each project (i.e. library) individually and in order so dependencies are satisfied. I want to create a single CMakeLists.txt file that would compile and install all the projects making sure dependencies are satisfied. So far the <name>Config.cmake file seems the way to do this but if there is another better way please let me know.

Horacio
Alex

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to