Fixed CMake app tests when building in source directory.