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