Enclose the example executables example/example64 with
option(ZLIB_ENABLE_TESTS "Set to ON to enable the ZLIB tests" OFF)
if (ZLIB_ENABLE_TESTS)
... add tests here ...
endif ()
otherwise those tests are included in projects that use zlib via submodule and CMake.