CMake build script for tests