summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Framework/iOSFrameworkLayout-build-check.cmake
blob: 373baad7a2a6fb130a5053df7ac667b0f614c6f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set(framework-dir "${RunCMake_TEST_BINARY_DIR}/Framework.framework")
set(plist-file "${framework-dir}/Info.plist")
set(framework-library "${framework-dir}/Framework")
set(framework-versions "${framework-dir}/Versions")

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(EXISTS ${framework-versions})
  message(SEND_ERROR "Framework versions found at ${framework-versions}")
endif()