[Geany] Improve project support
Nick Treleaven
nick.treleaven at xxxxx
Mon May 21 17:18:56 UTC 2007
On 05/21/2007 06:03:26 PM, Michal Kurgan wrote:
> On Mon, 21 May 2007 17:01:51 +0100
> Nick Treleaven <nick.treleaven at btinternet.com> wrote:
>
> > On 05/20/2007 03:40:05 AM, Michal Kurgan wrote:
> > > Hello!
> > >
> > > Another useful idea for me.
> > >
> > > Currently in geany Compile, Build and Execute commands are
> associated
> > > with file types and have two nice, additional variables (%f and
> %e). It
> > > would be very useful to add one more variable that would stand as
> project
> > > base directory (i.e. %p).
> >
> > Could you give an example usage of %p?
> >
>
> In all my projects i use cmake, it uses out of the source builds. Here
> is
> example layout:
>
> project/
> .cmake/
> src/
> CMakeLists.txt
>
> .cmake directory will hold all Makefiles, there is none in src
> directory.
> To populate .cmake directory you can use following command (in geany
> it can
> be run command):
>
> cd %p/.cmake && cmake .. (currently this will work: cd .cmake && cmake
> ..)
>
> It's not hard to imagine that to compile sources it would be very
> useful to
> have %p variable:
>
> make -C %p/.cmake <target>
Thanks, I'll add %p also.
Regards,
Nick
More information about the Users
mailing list