Add build option to disable tests

cmake <sourcedir> -DNO_TESTS=1