Added a CMake macro for creating test executables.