summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/MakeDependencies.step1.cmake
blob: c74f03319c29d83842c97e6e6a66203cb0e3e4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
file(TOUCH "${RunCMake_TEST_BINARY_DIR}/main.c")
foreach(i RANGE 1 20000)
  file(WRITE "${RunCMake_TEST_BINARY_DIR}/temp_header_file_${i}.h"
    "#define HEADER_${i} ${i}\n"
    )
  file(APPEND "${RunCMake_TEST_BINARY_DIR}/main.c"
    "#include \"temp_header_file_${i}.h\"\n"
    )
endforeach()
file(APPEND "${RunCMake_TEST_BINARY_DIR}/main.c"
  "#include \"main.h\"\n"
  )
file(APPEND "${RunCMake_TEST_BINARY_DIR}/main.c"
  "int main(void) { return COUNT; }\n"
  )
file(WRITE "${RunCMake_TEST_BINARY_DIR}/main.h"
  "#define COUNT 1\n"
  )