catch2.cmake 304 B

1234567891011121314
  1. if(TARGET Catch2::Catch2)
  2. return()
  3. endif()
  4. message(STATUS "Third-party: creating target 'Catch2::Catch2'")
  5. include(FetchContent)
  6. FetchContent_Declare(
  7. catch2
  8. GIT_REPOSITORY https://github.com/catchorg/Catch2.git
  9. GIT_TAG v2.13.8
  10. GIT_SHALLOW TRUE
  11. )
  12. FetchContent_MakeAvailable(catch2)