blob: 980975491e1888d696612ddcfab809178425587f [file] [log] [blame]
onqtam36e37452019-03-02 20:10:05 +02001set(doctest_include_folder "${CMAKE_CURRENT_LIST_DIR}/../../doctest/")
onqtamf720d432016-05-31 17:51:10 +03002
onqtam36e37452019-03-02 20:10:05 +02003file(READ ${doctest_include_folder}/parts/doctest_fwd.h fwd)
4file(READ ${doctest_include_folder}/parts/doctest.cpp impl)
onqtamf720d432016-05-31 17:51:10 +03005
onqtam36e37452019-03-02 20:10:05 +02006file(WRITE ${doctest_include_folder}/doctest.h "// ====================================================================== lgtm [cpp/missing-header-guard]\n")
7file(APPEND ${doctest_include_folder}/doctest.h "// == DO NOT MODIFY THIS FILE BY HAND - IT IS AUTO GENERATED BY CMAKE! ==\n")
8file(APPEND ${doctest_include_folder}/doctest.h "// ======================================================================\n")
9file(APPEND ${doctest_include_folder}/doctest.h "${fwd}\n")
10file(APPEND ${doctest_include_folder}/doctest.h "#ifndef DOCTEST_SINGLE_HEADER\n")
11file(APPEND ${doctest_include_folder}/doctest.h "#define DOCTEST_SINGLE_HEADER\n")
12file(APPEND ${doctest_include_folder}/doctest.h "#endif // DOCTEST_SINGLE_HEADER\n")
13file(APPEND ${doctest_include_folder}/doctest.h "\n${impl}")