2018-12-03 20:28:04 +05:00
|
|
|
include (ExternalProject)
|
|
|
|
find_program(GIT_EXECUTABLE git)
|
|
|
|
ExternalProject_Add(
|
|
|
|
project_catch
|
|
|
|
PREFIX ${CMAKE_BINARY_DIR}/catch
|
|
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
2021-09-02 17:52:34 +05:00
|
|
|
GIT_TAG v2.13.7
|
2018-12-03 20:28:04 +05:00
|
|
|
TIMEOUT 10
|
|
|
|
UPDATE_COMMAND "" # ${GIT_EXECUTABLE} pull
|
|
|
|
CONFIGURE_COMMAND ""
|
|
|
|
BUILD_COMMAND ""
|
|
|
|
INSTALL_COMMAND ""
|
|
|
|
LOG_DOWNLOAD ON
|
|
|
|
)
|
|
|
|
|
|
|
|
# Expose required variable (CATCH_INCLUDE_DIR) to parent scope
|
|
|
|
ExternalProject_Get_Property(project_catch source_dir)
|
|
|
|
set(CATCH_INCLUDE_DIR ${source_dir}/single_include CACHE INTERNAL "Path to include folder for Catch")
|