You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
720 B
25 lines
720 B
macro(check_plist key expect)
|
|
execute_process(
|
|
COMMAND plutil -extract "${key}" xml1 "${plist-file}" -o -
|
|
RESULT_VARIABLE result
|
|
OUTPUT_VARIABLE actual
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
if(actual MATCHES "<string>([^<>]*)</string>")
|
|
set(actual "${CMAKE_MATCH_1}")
|
|
endif()
|
|
if(NOT "${actual}" STREQUAL "${expect}")
|
|
string(CONCAT RunCMake_TEST_FAILED
|
|
"Framework Info.plist key \"${key}\" has value:\n"
|
|
" \"${actual}\"\n"
|
|
"but we expected:\n"
|
|
" \"${expect}\""
|
|
)
|
|
endif()
|
|
endmacro()
|
|
|
|
check_plist(CFBundleIdentifier MyFrameworkId)
|
|
check_plist(CFBundleName MyFrameworkBundleName)
|
|
check_plist(CFBundleVersion 3.2.1)
|
|
check_plist(CFBundleShortVersionString 3)
|