ENH: Add option WITH_GENERIC_TESTS to slicerMacroBuildQtModule

Instead of manually invoking "SlicerMacroConfigureGenericCxxModuleTests"
and then adding the associated test, specifying this new option
will auto-magically add the generic tests.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21768 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add SlicerMacroConfigureModuleCxxTestDriver to simplify test configuration

This macro will take care of:
  - creating the test driver executable. Using "SOURCES"
  - setting the appropriate properties
  - optionally linking to additional libraries. If "TARGET_LIBRARIES" is passed.
  - optionally including list of directories. If "INCLUDE_DIRECTORIES" is passed.
  - enabling VTK debug leaks detection if "WITH_VTK_DEBUG_LEAKS_CHECK" is passed.

It can also return the list of test to run if "TESTS_TO_RUN_VAR" is set.

This macro will make maintenance of testing framework easier and more
consistent.

The other advantages is that the content of the CMakeLists.txt declaring
tests is simpler and easier to understand.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21769 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Update modules to use WITH_GENERIC_TESTS and SlicerMacroConfigureModuleCxxTestDriver

Overall simplification of the CMakeLists related to Testing.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21770 3bd1e089-480b-0410-8dfb-8563597acbee