Lines Matching full:catch
1 # - Find the Catch test framework or download it (single header)
3 # This is a quick module for internal use. It assumes that Catch is
9 # CATCH_INCLUDE_DIR - path to catch.hpp
15 message(FATAL_ERROR "This module assumes Catch is not required.")
20 # Extract the version number from catch.hpp
23 STRINGS "${CATCH_INCLUDE_DIR}/catch.hpp" version_line
24 REGEX "Catch v.*"
26 if(version_line MATCHES "Catch v([0-9]+)\\.([0-9]+)\\.([0-9]+)")
33 # Download the single-header version of Catch
35 message(STATUS "Downloading catch v${version}...")
36 set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
37 file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)
47 # Look for catch locally
50 NAMES catch.hpp
59 _download_catch(${Catch_FIND_VERSION} "${PROJECT_BINARY_DIR}/catch/")