Added support for CMake and CTest