Some tests are meant to be executed and should therefore be run in CI as well.
The easiest way is to make use of try_run, which would work for both the CTest and non-CTest test versions.
The only issue would be that the required CMake version needs to be bumped to 3.25. That could be solved by only bumping the version required when tests are enabled.