From add57574881f7389ce4a3f82934907420945b0f4 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 16 Jul 2018 18:55:40 +0200 Subject: Simplify handling and non-splitted tests and include split_test_helper.h instead of re-generating it. This also allows us to modify it without breaking existing build folder. --- scripts/eigen_gen_split_test_help.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/eigen_gen_split_test_help.cmake (limited to 'scripts') diff --git a/scripts/eigen_gen_split_test_help.cmake b/scripts/eigen_gen_split_test_help.cmake new file mode 100644 index 000000000..e43f5aabe --- /dev/null +++ b/scripts/eigen_gen_split_test_help.cmake @@ -0,0 +1,11 @@ +#!cmake -P +file(WRITE split_test_helper.h "") +foreach(i RANGE 1 999) + file(APPEND split_test_helper.h + "#if defined(EIGEN_TEST_PART_${i}) || defined(EIGEN_TEST_PART_ALL)\n" + "#define CALL_SUBTEST_${i}(FUNC) CALL_SUBTEST(FUNC)\n" + "#else\n" + "#define CALL_SUBTEST_${i}(FUNC)\n" + "#endif\n\n" + ) +endforeach() \ No newline at end of file -- cgit v1.2.3