EXECUTABLE_OUTPUT_PATH for tests

Andreas Pakulat apaku at gmx.de
Thu Sep 20 09:24:47 CEST 2007


On 19.09.07 21:31:39, Alexander Neundorf wrote:
> On Wednesday 19 September 2007 20:51, Andreas Pakulat wrote:
> ...
> > Well, I also quite often execute tests manually, especially QtTest based
> > ones, because that way I can see their full output. And if I'm in
> > <builddir>/myplugin/ or <builddir>/myplugin/test its much easier to run
> > test/mytest (or ./mytest) then ../../bin/test_mytest.
> 
> I didn't argue that it doesn't make any sense to have the test executables in 
> the current dir, but that while it makes some sense OTOH it creates an ugly 
> side effect.
> 
> > Anyway, so far we're only 2 people who disagree, I'd say we need a 3rd
> > opinion :)
> 
> Ok, it is possible per target with cmake cvs HEAD:
> 
> set_target_properties(mytest PROPERTIES RUNTIME_OUTPUT_DIRECTORY wherever)
> 
> If we put this in the macros for the test executables, developers who really 
> want that can use cmake cvs (which will become 2.6.0). I use it every day, 
> it's stable.

Well, I think our devs got more important stuff to do than trying out
the latest cmake ;) So when CMake 2.6 is released and used by KDE4 then
this seems to be the best solution.

> For all others we don't mess up EXECUTABLE_OUTPUT_PATH.

So you're going to remove EXECUTABLE_OUTPUT_PATH from the test-macros
and put it into the tests/CMakeLists.txt directly?

I don't like the test_-prefix because it changes the target name from
what is in the CMakeLists.txt. As I said I think quite some people run
tests manually and then you always have to remember that its
test_mytest. 

Andreas

-- 
Tomorrow, this will be part of the unchangeable past but fortunately,
it can still be changed today.


More information about the Kde-buildsystem mailing list