[Cmake] setting up a project

Nils H. Busch nilsb at cns . mpg . de
Tue, 25 Mar 2003 16:15:27 +0100


Hello,

there has been some mentioning of how to prepare a cmake project for use
with FIND_PACKAGE, esp. the UseFoo.cmake and FooConfig.cmake files.
Browsing the cooresponding files in vtk gives some hints, but it seems
there is a certain amount of infrastructure to support "old" vtk
conventions.
I would like to know, if there is a more basic example of how to set up
those files for use with FIND_PACKAGE or make a project easily cooperate
with other cmake projects ?
Also, I have not fully understood whether the support for build and
install trees is specific to vtk or whether this has to be done for all
cmake projects.

Any pointers or explanations greatly appreciated.

Thanks.

--
    Nils H. Busch
    Max-Planck-Institute of Cognitive Neuroscience
    phone:  ++49 (341) 9940-035 fax:  ++49 (341) 9940-204
    e-mail: nilsb at cns . mpg . de