adding cmake option for building examples

Change-Id: Ib0408ba7917d2b759e5f09480e6fbc2a826a073f
converted language specific add test macros into functions

Change-Id: I5b8b243f8f5cb89f746b609ee161a0ecb69e96a3
Only adding language specific example if build examples is enabled

Change-Id: I846abf1624ef6b7792deb5c643637a4483f20b16
Moving CXX example tests to CMakeLists

Previously the CXX examples tests were written in C++, not the
itkTestDriver is used with testing parameters written with CMake.

Change-Id: I07bddb4d31c1b061fad58f251193ec613c51c04e
Enable Examples in SimpleITK superbuild for testing

In the SimpleITK superbuild sub-project, examples are enabled when
testing is enabled. This is so that they are tested.

Change-Id: Ic7981e9326ef917c76b9e3ed2ac98dfcd15412c1
Merge topic 'SIMPLEITK-410_UseOptionBUILD_EXAMPLES'

4df55813 Enable Examples in SimpleITK superbuild for testing
1686a706 Moving CXX example tests to CMakeLists
57739dcc Only adding language specific example if build examples is enabled
360b0503 converted language specific add test macros into functions
69bedc0e adding cmake option for building examples