Appropriate location for cmake support files
Rex Dieter
rdieter at math.unl.edu
Thu Apr 18 20:23:50 UTC 2013
Mario Ceresa wrote:
> Hi all,
> does anybody know where should I put cmake support files such as:
>
> OpenIGTLinkBuildSettings.cmake
> OpenIGTLinkConfig.cmake
> UseOpenIGTLink.cmake
>
> in order for cmake to find them automatically? Can I put them in
> /usr/share/cmake/Modules/ ?
>
> I read a lot of tutorials on how cmake's find_package works, but I'm
> still a bit confused... Maybe there is a packaging guideline somewhere
> and I missed it?
Under something like %_datadir/cmake/<foo> or %_libdir/cmake/<foo> depending
on if this is arch-specific or not (I'm guessing yes, so most often the
latter)
-- rex
More information about the devel
mailing list