initial commit
This commit is contained in:
commit
efcd3e1892
106 changed files with 27000 additions and 0 deletions
12
cmake/MacPlistMacros.cmake
Normal file
12
cmake/MacPlistMacros.cmake
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Mac Plist Macros
|
||||
|
||||
FUNCTION (GET_VERSION_PLIST PLISTFILE OUTVAR)
|
||||
SET (PVERSION "")
|
||||
IF (EXISTS ${PLISTFILE})
|
||||
FILE (READ "${PLISTFILE}" info_plist)
|
||||
STRING (REGEX REPLACE "\n" "" info_plist "${info_plist}")
|
||||
STRING (REGEX MATCH "<key>CFBundleShortVersionString</key>[ \t]*<string>([0-9\\.]*)</string>" PLISTVERSION "${info_plist}")
|
||||
STRING (REGEX REPLACE "<key>CFBundleShortVersionString</key>[ \t]*<string>([0-9\\.]*)</string>" "\\1" PVERSION "${PLISTVERSION}")
|
||||
ENDIF (EXISTS ${PLISTFILE})
|
||||
SET (${OUTVAR} ${PVERSION} PARENT_SCOPE)
|
||||
ENDFUNCTION (GET_VERSION_PLIST)
|
||||
Loading…
Add table
Add a link
Reference in a new issue