[Tellico-users] CMake Question

View: New views
3 Messages — Rating Filter:   Alert me  

[Tellico-users] CMake Question

by Matthew Soffen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to take a poke at updating the RPM Spec file to build the
normal RPMs.

However, since (like you) I'm no cmake experrt, I'm unable to find where
you set "DATA_INSTALL_DIR" for your application.  I'm assuming that you
are using whatever the cmake default for DATA_INSTALL_DIR is (
/usr/local/share/apps ).

For the RPM , I need to make this dir /usr/share/apps and I need to make
the install directory /usr/bin/ (instead of /usr/local/bin).

Any suggestions ?

Matt


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/

_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] CMake Question

by Pau Garcia i Quiles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Aug 21, 2009 at 7:45 PM, Matthew Soffen<sirgeek@...> wrote:

> I'm trying to take a poke at updating the RPM Spec file to build the
> normal RPMs.
>
> However, since (like you) I'm no cmake experrt, I'm unable to find where
> you set "DATA_INSTALL_DIR" for your application.  I'm assuming that you
> are using whatever the cmake default for DATA_INSTALL_DIR is (
> /usr/local/share/apps ).
>
> For the RPM , I need to make this dir /usr/share/apps and I need to make
> the install directory /usr/bin/ (instead of /usr/local/bin).
>
> Any suggestions ?

You want to change the prefix. By default it is /usr/local, you want /usr.

Invoke CMake as cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr

--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users

Re: [Tellico-users] CMake Question

by Bugzilla from bruno@victoria.frmug.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Aug 21, 2009 at 01:45:23PM -0400, Matthew Soffen wrote:
> For the RPM , I need to make this dir /usr/share/apps and I need to make
> the install directory /usr/bin/ (instead of /usr/local/bin).
>
> Any suggestions ?

For Mandriva there is a macro for that:

%build
%cmake_kde4
%make

Maybe it's available on the RPM based distro you're using.
HTH,
Bruno.
--
Des infos sur la musique ancienne  -- http://www.musique-ancienne.org
Des infos sur les logiciels libres -- http://www.HyPer-Linux.org
Home, sweet musical Home -- Lover of Andromède, Béatrice, Early Music,
Josquin, Linux, Mélisande, Recorder, and Ségolène (not in that order)
_______________________________________________
tellico-users mailing list
tellico-users@...
https://mail.kde.org/mailman/listinfo/tellico-users