Use macros for test and helper executable targets on cmake build system.
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 10 Oct 2013 21:42:57 +0000 (23:42 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 10 Jan 2014 00:24:56 +0000 (01:24 +0100)
commit8e728f36d19b52d083680e618aa57171e828c5cd
tree24cfe4e1cea815b0c25c7eefb2c2f2b51534d599
parent79a7a30cdb06fbda283a652524978c87d0eca8d8
Use macros for test and helper executable targets on cmake build system.

The new macros add_test_executables and add helper_executables provides a
platform independent way for specifing dbus test and service applications.

On native Windows and Linux/UNIX systems the test applications are
directly runable.

When cross compiling for Windows on Linux test applications could be
executed on the Linux host system with the help of wine and activated
binfmt_misc support for wine.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41252
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/bus/CMakeLists.txt
cmake/dbus/CMakeLists.txt
cmake/modules/Macros.cmake
cmake/test/CMakeLists.txt
cmake/test/name-test/CMakeLists.txt