onqtam | f720d43 | 2016-05-31 17:51:10 +0300 | [diff] [blame] | 1 | set(doctest_include_folder "${CMAKE_CURRENT_LIST_DIR}/../doctest/") |
| 2 | |
| 3 | file(READ ${doctest_include_folder}/parts/doctest_fwd.h fwd) |
| 4 | file(READ ${doctest_include_folder}/parts/doctest_impl.h impl) |
| 5 | |
| 6 | file(WRITE ${doctest_include_folder}/doctest.h "// ======================================================================\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}") |