onqtam | 36e3745 | 2019-03-02 20:10:05 +0200 | [diff] [blame] | 1 | set(doctest_include_folder "${CMAKE_CURRENT_LIST_DIR}/../../doctest/") |
onqtam | f720d43 | 2016-05-31 17:51:10 +0300 | [diff] [blame] | 2 | |
onqtam | 36e3745 | 2019-03-02 20:10:05 +0200 | [diff] [blame] | 3 | file(READ ${doctest_include_folder}/parts/doctest_fwd.h fwd) |
| 4 | file(READ ${doctest_include_folder}/parts/doctest.cpp impl) |
onqtam | f720d43 | 2016-05-31 17:51:10 +0300 | [diff] [blame] | 5 | |
onqtam | 36e3745 | 2019-03-02 20:10:05 +0200 | [diff] [blame] | 6 | file(WRITE ${doctest_include_folder}/doctest.h "// ====================================================================== lgtm [cpp/missing-header-guard]\n") |
| 7 | file(APPEND ${doctest_include_folder}/doctest.h "// == DO NOT MODIFY THIS FILE BY HAND - IT IS AUTO GENERATED BY CMAKE! ==\n") |
| 8 | file(APPEND ${doctest_include_folder}/doctest.h "// ======================================================================\n") |
| 9 | file(APPEND ${doctest_include_folder}/doctest.h "${fwd}\n") |
| 10 | file(APPEND ${doctest_include_folder}/doctest.h "#ifndef DOCTEST_SINGLE_HEADER\n") |
| 11 | file(APPEND ${doctest_include_folder}/doctest.h "#define DOCTEST_SINGLE_HEADER\n") |
| 12 | file(APPEND ${doctest_include_folder}/doctest.h "#endif // DOCTEST_SINGLE_HEADER\n") |
| 13 | file(APPEND ${doctest_include_folder}/doctest.h "\n${impl}") |