1include (ExternalProject) 2find_program(GIT_EXECUTABLE git) 3ExternalProject_Add( 4 project_catch 5 PREFIX ${CMAKE_BINARY_DIR}/catch 6 GIT_REPOSITORY https://github.com/catchorg/Catch2.git 7 GIT_TAG v2.13.7 8 TIMEOUT 10 9 UPDATE_COMMAND "" # ${GIT_EXECUTABLE} pull 10 CONFIGURE_COMMAND "" 11 BUILD_COMMAND "" 12 INSTALL_COMMAND "" 13 LOG_DOWNLOAD ON 14 ) 15 16# Expose required variable (CATCH_INCLUDE_DIR) to parent scope 17ExternalProject_Get_Property(project_catch source_dir) 18set(CATCH_INCLUDE_DIR ${source_dir}/single_include CACHE INTERNAL "Path to include folder for Catch") 19