summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-07-18 16:11:44 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2016-07-22 06:18:56 (GMT)
commitf951d0adb4f7ca185804fba530a3dbc9b81f1cc5 (patch)
tree4221f6692e83ec31fca1244eaa2423db6edec718 /Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake
parentc63380b1955422d7116f7ea90c238ab8619e9bc4 (diff)
downloadCMake-f951d0adb4f7ca185804fba530a3dbc9b81f1cc5.zip
CMake-f951d0adb4f7ca185804fba530a3dbc9b81f1cc5.tar.gz
CMake-f951d0adb4f7ca185804fba530a3dbc9b81f1cc5.tar.bz2
Add tests for BUNDLE_EXTENSION
Diffstat (limited to 'Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake')
-rw-r--r--Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake b/Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake
new file mode 100644
index 0000000..758d730
--- /dev/null
+++ b/Tests/RunCMake/XcodeProject/XcodeBundles-install-check.cmake
@@ -0,0 +1,8 @@
+file(GLOB DIRECTORIES LIST_DIRECTORIES true
+ "${RunCMake_TEST_BINARY_DIR}/_install/FooExtension/*.*")
+
+foreach(DIRECTORY IN LISTS DIRECTORIES)
+ if(NOT DIRECTORY MATCHES "\\.foo$")
+ message(SEND_ERROR "Extension does not match ${DIRECTORY}")
+ endif()
+endforeach()