Moved the ENABLE_TESTS option in the CMakeLists.txt in the root of the project.
Conditionally enable testing.