Slicer: 2145-support-for-installing-extension-from-file b51776e6

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-02-22 02:53:27 2145-support-for-installing-extension-from-file ccf19a48
Changeset

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

add - CMake/SlicerMacroConfigureModuleCxxTestDriver.cmake Diff File
mod - CMake/UseSlicer.cmake.in Diff File
mod - CMakeLists.txt Diff File