mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 11:40:23 +00:00
e76ee2c006
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.
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
set(framework-dir "${RunCMake_TEST_BINARY_DIR}/Framework.framework")
|
|
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}")
|
|
endif()
|
|
|
|
if(NOT EXISTS ${plist-file})
|
|
message(SEND_ERROR "plist file not found at ${plist-file}")
|
|
endif()
|
|
|
|
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()
|