18 lines
702 B
CMake
18 lines
702 B
CMake
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.14 FATAL_ERROR)
|
||
|
INCLUDE(FetchContent)
|
||
|
|
||
|
IF (BUILD_TESTING)
|
||
|
FETCHCONTENT_DECLARE(doctest_framework
|
||
|
URL file://${CMAKE_SOURCE_DIR}/depend/doctest-2.4.9.tar.gz
|
||
|
URL_MD5 a7948b5ec1f69de6f84c7d7487aaf79b)
|
||
|
FETCHCONTENT_MAKEAVAILABLE(doctest_framework)
|
||
|
|
||
|
FETCHCONTENT_GETPROPERTIES(doctest_framework)
|
||
|
IF (NOT doctest_framework_POPULATED)
|
||
|
FETCHCONTENT_POPULATE(doctest_framework)
|
||
|
ADD_SUBDIRECTORY(${doctest_framework_SOURCE_DIR})
|
||
|
ENDIF ()
|
||
|
|
||
|
INCLUDE_DIRECTORIES(${doctest_framework_SOURCE_DIR}/doctest)
|
||
|
LIST(APPEND CMAKE_MODULE_PATH ${doctest_framework_SOURCE_DIR}/scripts/cmake)
|
||
|
ENDIF ()
|