mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Search for macdeployqt program and fail if it is not found when creating the package for Mac OS X.
This commit is contained in:
parent
dee9e710b3
commit
11c9929f10
1 changed files with 5 additions and 1 deletions
|
|
@ -218,8 +218,12 @@ elseif(APPLE)
|
|||
configure_file("linphone.icns" "Linphone.app/Contents/Resources/linphone.icns" COPYONLY)
|
||||
file(COPY "${LINPHONE_OUTPUT_DIR}/bin/linphone" DESTINATION "Linphone.app/Contents/MacOS")
|
||||
|
||||
find_program(DEPLOYQT_PROGRAM macdeployqt)
|
||||
if(NOT DEPLOYQT_PROGRAM)
|
||||
message(FATAL_ERROR "Could not find the macdeployqt program. Make sure it is in the PATH.")
|
||||
endif()
|
||||
execute_process(
|
||||
COMMAND macdeployqt "${CMAKE_CURRENT_BINARY_DIR}/Linphone.app" "-qmldir=${LINPHONE_QML_DIR}" "-verbose=2"
|
||||
COMMAND "${DEPLOYQT_PROGRAM}" "${CMAKE_CURRENT_BINARY_DIR}/Linphone.app" "-qmldir=${LINPHONE_QML_DIR}" "-verbose=2"
|
||||
)
|
||||
|
||||
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Linphone.app" DESTINATION "." USE_SOURCE_PERMISSIONS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue