COMP: Fix for failing ApplyAccumulateImageFilter baseline comparison test

The ApplyAccumulateImageFilterTestBaselineComparison fails because the test
which needs to be run before it (to produce the Output0.mha file) is run AFTER
the baseline comparison.  The problem is that the PROPERTIES DEPENDS is set as
${example_name}Test, which will not work with tests named like
ApplyAccumulateImageFilterTest${i}

The CMake function compare_to_baseline has been modified such that now we can
easily add dependencies in between test, or options.

Here is the new API:

compare_to_baseline(
  [TEST_NAME myAwesomeExampleBaselineComparison1] // this argument is optional and meant
                                                  // to be used when there would be several
                                                  // baseline comparison tests based on one given
                                                  // example
  EXAMPLE_NAME myAwesomeExampleName
  BASELINE_PREFIX myBaselineImagePrefix
  [TEST_IMAGE_PREFIX myAwesomeExampleOutputImagePrefix] // this argument is optional and meant
                                                        // to be used when there would be several
                                                        // baseline comparison tests based on one given
                                                        // example
  [OPTIONS myListOfOptions]
  [DEPENDS myListOfDependencies]
)

Co-Authored-By: Michka Popoff <michkapopoff@gmail.com>

Change-Id: Ib3a2301a6136f8d7a946716b9454ef3b076cf8e5
Merge "COMP: Fix for failing ApplyAccumulateImageFilter baseline comparison test"