Newer
Older
minerva / Meta / CMake / commonmark_spec.cmake
@minerva minerva on 13 Jul 409 bytes Initial commit
option(ENABLE_COMMONMARK_SPEC_DOWNLOAD "Enable download of commonmark test suite at build time" ON)

set(MARKDOWN_TEST_PATH ${MINERVA_CACHE_DIR}/commonmark.spec.json)
set(MARKDOWN_TEST_URL https://spec.commonmark.org/0.30/spec.json)

if(ENABLE_COMMONMARK_SPEC_DOWNLOAD)
    download_file(${MARKDOWN_TEST_URL} ${MARKDOWN_TEST_PATH})
    install(FILES ${MARKDOWN_TEST_PATH} DESTINATION home/anon/Tests)
endif()