if(ENABLE_DOCTESTS) add_definitions(-DENABLE_DOCTEST_IN_LIBRARY) include(FetchContent) FetchContent_Declare( DocTest GIT_REPOSITORY "https://github.com/onqtam/doctest" GIT_TAG "b7c21ec5ceeadb4951b00396fc1e4642dd347e5f" ) FetchContent_MakeAvailable(DocTest) include_directories(${DOCTEST_INCLUDE_DIR}) endif()