unit tests

David Faure faure at kde.org
Thu Mar 30 21:18:28 CEST 2006


On Thursday 30 March 2006 21:15, Alexander Neundorf wrote:
> On Thursday 30 March 2006 14:37, David Faure wrote:
> > Isn't there any reason why unit test programs go to toplevel/bin?
> 
> EXECUTABLE_OUTPUT_PATH is set to CMAKE_BINARY_DIR/bin, so all executables are 
> created there. I did it this way because it made executing the tools during 
> the build a bit easier, since they are all located in the same path.

Hmm, for source code generators I agree. But for test programs, they are run
by the user so it's easier in "." - or they are run by ctest, which seems to find them just fine.

> AFAIK EXECUTABLE_OUTPUT_PATH is project-wide. 

Hmm, no, I managed to set it in kdecore/tests/CMakeLists.txt just fine (this is committed).

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list