[CMake] CPack: Installing applications in separate folders
Eric Noulard
eric.noulard at gmail.com
Thu Jan 24 19:11:24 EST 2013
2013/1/25 Ian Monroe <ian at monroe.nu>:
> On Mon, May 21, 2012 at 3:38 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
>> 2012/5/21 David Cole <david.cole at kitware.com>:
>>> On Mon, May 21, 2012 at 2:05 PM, <norulez at me.com> wrote:
>>>>
>>>> But what about other systems like linux. If I have an executable and
>>>> shared libraries for example.
>>>> Then it is possible to install it under /opt/myproject, but it is not
>>>> possible to install the executable under /usr/bin and the shared libraries
>>>> under /usr/lib? Or did I misunderstood something?
>>>
>>>
>>> But you don't build an NSIS installer based on those.
>>
>> And installing lib in /usr/lib and exe in /usr/bin IS possible
>> because the 2 path shares the /usr prefix.
>>
>> On Linux if you build an RPM or DEB package which contains various
>> prefix (/usr /opt etc..) you either get a non relocatable package
>> or decide that some files are "special" like config files.
>
> So I have a question tangential to this old thread: how *do* you
> install some special config files?
Usually I install them under the shared prefix and then add a
post-install rule for creating a link ...
> I want my package to be mostly installed under /opt, but still drop
> the relevant .desktop and .png files into /usr/share/application,
> /usr/share/icons/...
or I create 2 packages which may have different prefix.
or in the end I craft my user spec file because CPack does
not support my particular need.
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
More information about the CMake
mailing list