summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-05 12:35:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-05 12:36:06 (GMT)
commitac4d6d4a9d9b81773e61c643169cb2afe1bab644 (patch)
tree7679958f3ffece7ae00993fa7c26c70d9b6a1dc2 /Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake
parentfcba9c3baa00631407f493f97afe7e9cd1b844a7 (diff)
parent7786a05c707dc5ffe9fdf7a6b468f56ed18c9e8a (diff)
downloadCMake-ac4d6d4a9d9b81773e61c643169cb2afe1bab644.zip
CMake-ac4d6d4a9d9b81773e61c643169cb2afe1bab644.tar.gz
CMake-ac4d6d4a9d9b81773e61c643169cb2afe1bab644.tar.bz2
Merge topic 'unity-build'
7786a05c70 Unity build: Add XCode support 1353802af3 Unity build: Add unit tests 8dfeb5d278 Unity build: Add support for Visual Studio generator 7114c141e2 Unity build: Add support for Ninja and Makefile generators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com> Acked-by: Evgeniy Dushistov <dushistov@mail.ru> Acked-by: Viktor Kirilov <vik.kirilov@gmail.com> Merge-request: !3611
Diffstat (limited to 'Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake')
-rw-r--r--Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake b/Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake
new file mode 100644
index 0000000..32bb8e7
--- /dev/null
+++ b/Tests/RunCMake/UnityBuild/unitybuild_batchsize-check.cmake
@@ -0,0 +1,11 @@
+set(unitybuild_c0 "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0.c")
+set(unitybuild_c1 "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_1.c")
+if(NOT EXISTS "${unitybuild_c0}")
+ set(RunCMake_TEST_FAILED "Generated unity source files ${unitybuild_c0} does not exist.")
+ return()
+endif()
+
+if(NOT EXISTS "${unitybuild_c1}")
+ set(RunCMake_TEST_FAILED "Generated unity source files ${unitybuild_c1} does not exist.")
+ return()
+endif()