comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: Question about GNAT project files.
Date: Mon, 27 Feb 2012 08:43:25 -0500
Date: 2012-02-27T08:43:25-05:00	[thread overview]
Message-ID: <Y7qdnd0bUqrgFdbS4p2dnAA@giganews.com> (raw)
In-Reply-To: <d9438b7a-5320-42cd-bee7-dd3299be5dff@w19g2000vbe.googlegroups.com>

On 2012-02-27 08:08, Ludovic Brenta wrote:

> I would keep the library project file unchanged and create one project
> file for both the tests and the benchmark:
>
> with "lib.gpr";
> project Main is
>     for Source_Dirs use ("tests", "benchmarks");
>     for Main use ("test", "benchmark");
> end Main;
>
> You load main.gpr in GPS.

That's an interesting idea, thanks. I've done something similar in other 
cases where I configured a project to use the test program as the "main" 
program even though the real purpose of the project was to build a 
library. This is the same idea except 1) the library is in its own 
project (which I like) and 2) the main project has two main programs.

Thanks for the suggestion.

Peter



  reply	other threads:[~2012-02-27 13:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26 19:48 Question about GNAT project files Peter C. Chapin
2012-02-26 20:15 ` Dmitry A. Kazakov
2012-02-26 22:18 ` Greg Moncreaff
2012-02-27 13:41   ` Peter C. Chapin
2012-02-28 16:59     ` Yannick Duchêne (Hibou57)
2012-02-28 18:10       ` AdaMagica
2012-02-28 18:14       ` Simon Wright
2012-02-27 13:08 ` Ludovic Brenta
2012-02-27 13:43   ` Peter C. Chapin [this message]
2012-02-27 15:27   ` Simon Wright
2012-02-28  2:02   ` Peter C. Chapin
2012-02-28  6:56     ` Phil Thornley
2012-02-29  0:04       ` Peter C. Chapin
2012-02-29  9:18         ` Phil Thornley
2012-02-29 14:51           ` Peter C. Chapin
2012-02-29 16:49             ` Phil Thornley
2012-02-29 17:17               ` Peter C. Chapin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox