Added a CMake options to generate or not the tests.