summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
diff options
context:
space:
mode:
authorBartosz Kosiorek <bartosz.kosiorek@tomtom.com>2015-12-02 21:34:25 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-03 13:52:09 (GMT)
commite76ee2c006777e268715b39ad71f49e3d18b11a4 (patch)
tree5c913b087d66d2fa5f25b65635b9b2fb9d562a92 /Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
parent6f6897f1aef884963503d8068707cf27fa7d99e7 (diff)
downloadCMake-e76ee2c006777e268715b39ad71f49e3d18b11a4.zip
CMake-e76ee2c006777e268715b39ad71f49e3d18b11a4.tar.gz
CMake-e76ee2c006777e268715b39ad71f49e3d18b11a4.tar.bz2
iOS: Fix framework resource directory layout (#15848)
A typical iOS application bundle (also Framework Bundle) contains the application executable and any resources used by the application (for instance, the application icon, other images, and localized content) in the top-level bundle directory. The same rule applies to Framework Bundles.
Diffstat (limited to 'Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake')
-rw-r--r--Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake17
1 files changed, 16 insertions, 1 deletions
diff --git a/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake b/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
index 373baad..b81a5f7 100644
--- a/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
+++ b/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
@@ -1,7 +1,10 @@
set(framework-dir "${RunCMake_TEST_BINARY_DIR}/Framework.framework")
-set(plist-file "${framework-dir}/Info.plist")
+set(framework-resources "${framework-dir}/Resources")
+set(framework-resource-file "${framework-dir}/res.txt")
set(framework-library "${framework-dir}/Framework")
set(framework-versions "${framework-dir}/Versions")
+set(plist-file "${framework-dir}/Info.plist")
+set(framework-header "${framework-dir}/Headers/foo.h")
if(NOT IS_DIRECTORY ${framework-dir})
message(SEND_ERROR "Framework not found at ${framework-dir}")
@@ -15,6 +18,18 @@ if(NOT EXISTS ${framework-library})
message(SEND_ERROR "Framework library not found at ${framework-library}")
endif()
+if(NOT EXISTS ${framework-resource-file})
+ message(SEND_ERROR "Framework resource file not found at ${framework-resource-file}")
+endif()
+
if(EXISTS ${framework-versions})
message(SEND_ERROR "Framework versions found at ${framework-versions}")
endif()
+
+if(EXISTS ${framework-resources})
+ message(SEND_ERROR "Framework Resources found at ${framework-resources}")
+endif()
+
+if(NOT EXISTS ${framework-header})
+ message(SEND_ERROR "Framework headers not found at ${framework-header}")
+endif()