Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FetchContent to download dependencies #6

Merged
merged 4 commits into from May 4, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Use FetchContent to obtain doctest

  • Loading branch information...
seanmiddleditch committed May 4, 2019
commit 6a3b2cf199dd6f9c14afb9955d94f20c804cebcf
@@ -1,4 +1,13 @@
include(FetchContent)
FetchContent_Declare(doctest
GIT_REPOSITORY https://github.com/onqtam/doctest.git
GIT_TAG 2.3.1
GIT_SHALLOW ON
GIT_SUBMODULES ""
)

if(LITEXX_BUILD_TESTS AND NOT TARGET doctest)
FetchContent_Populate(doctest)
set(DOCTEST_WITH_TESTS OFF CACHE BOOL "enable doctest tests")
set(DOCTEST_WITH_MAIN_IN_STATIC_LIB OFF CACHE BOOL "enable doctest static library")
add_subdirectory(doctest EXCLUDE_FROM_ALL)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.