mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
19 lines
590 B
CMake
19 lines
590 B
CMake
include (ExternalProject)
|
|
find_program(GIT_EXECUTABLE git)
|
|
ExternalProject_Add(
|
|
project_catch
|
|
PREFIX ${CMAKE_BINARY_DIR}/catch
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
GIT_TAG v2.13.7
|
|
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")
|