[CMake] installing a module

David Ojeda david.ojeda at gmail.com
Tue Aug 25 06:37:46 EDT 2009


Hello all,

I have a quick question regarding cmake modules.

I have a shared library that I managed to compile and install using cmake.
This is working great but now I want to use this library in another
cmake-based development. Normally, as with any other shared library, I use a
FindPackage to get the include and linker flags. However, since I am using
my shared library, I wrote a cmake module. Once again this is working ok and
I would like to include this module as a part of the files installed by the
library. So the question is:
where can I install the module?

For the moment, I installed it at a directory called cmake, which then
installs it at /usr/local/cmake... however, this forces me to do cmake
-DCMAKE_MODULE_PATH=/usr/local/cmake ../
The thing is that i would like to avoid this since it would be easier for
the people that will use the library to do: cmake ../

Thanks for your time
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090825/f6dbf89f/attachment.htm>


More information about the CMake mailing list