Add CMakeLists option to build tests