From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d13bf824aeeb7e2b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.129.133 with SMTP id nw5mr11488857pbb.3.1330350205460; Mon, 27 Feb 2012 05:43:25 -0800 (PST) Path: h9ni15307pbe.0!nntp.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 27 Feb 2012 07:43:25 -0600 Date: Mon, 27 Feb 2012 08:43:25 -0500 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question about GNAT project files. References: In-Reply-To: Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-H8RqM0Q8CcxPsQCYnIzSIBVd9aeqAh4MpRdEPDXhKN0kIpy/TMTzKw9RWO1ga3LLcv7TliMqMe9TzKH!0xOJbY47kFdjiGa3fwf9J5ilpuWpwZxxvVLki1vMJ33Vr7sRUDpLjGsyNNTKkA== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1990 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-02-27T08:43:25-05:00 List-Id: 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