mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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.
This commit is contained in:
11
scripts/eigen_gen_split_test_help.cmake
Normal file
11
scripts/eigen_gen_split_test_help.cmake
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user