Look at SkullStripper extension for an example: - https://github.com/Slicer/SkullStripper/blob/master/Testing/Cxx/CMakeLists.txt - http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Tutorials/UploadTestData
Look at SkullStripper extension for an example: