Appropriate location for cmake support files

Mario Ceresa mrceresa at gmail.com
Fri Apr 19 19:11:11 UTC 2013


Thanks Rex and Orion for the response!

Mario

On 18 April 2013 22:44, Orion Poplawski <orion at cora.nwra.com> wrote:
> On 04/18/2013 02:23 PM, Rex Dieter wrote:
>>
>> 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
>>
>
> Where <foo> is probably %{name}.  There probably should be a guideline for
> this somewhere, but hopefully projects will install them in the proper
> place.
>
>
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       orion at nwra.com
> Boulder, CO 80301                   http://www.nwra.com
> --
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel


More information about the devel mailing list