include(FetchContent) FetchContent_Declare( magic_enum EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/Neargye/magic_enum.git GIT_TAG v0.7.0 GIT_SHALLOW TRUE ) FetchContent_MakeAvailable(magic_enum)