Re: [CMake] Redefine target in nested project

2009-04-28 Thread Marcel Loose
Hi Tyler, What I meant is the following. I would like to be able to run 'make check' at any directory level in the build tree. Currently, this is not possible, because AFAIK, you then need to multiply define the target 'check' (for each separate project), which is not possible, because CMake

Re: [CMake] Redefine target in nested project

2009-04-28 Thread Marcel Loose
Hi Alex, Yes, I think this issue more or less covers what I want as well. In fact, I would like 'make check' to behave the same way as 'make test', which can also be invoked from any directory in the build tree. However, my 'make check' target also does a (re)compile of the test programs, whereas

[CMake] Redefine target in nested project

2009-04-27 Thread Marcel Loose
Hi all, I was wondering whether it's possible to somehow redefine an existing target within a nested project. Let me give an example. Suppose my CMake project has the following structure bigproject subproject_1 subproject_2 where bigproject, subproject_1 and subproject_2 are all CMake

Re: [CMake] Redefine target in nested project

2009-04-27 Thread Tyler Roscoe
On Mon, Apr 27, 2009 at 03:33:39PM +0200, Marcel Loose wrote: Now, suppose there's some generic target (e.g. 'check') that I would like to be defined for each of these projects, such that I can do $ cd /path/to/build/directory/bigproject make check but also $ cd

Re: [CMake] Redefine target in nested project

2009-04-27 Thread Alexander Neundorf
On Monday 27 April 2009, Marcel Loose wrote: Hi all, I was wondering whether it's possible to somehow redefine an existing target within a nested project. Let me give an example. Suppose my CMake project has the following structure bigproject subproject_1 subproject_2 where