Commit 11c9929f authored by Ghislain MARY's avatar Ghislain MARY

Search for macdeployqt program and fail if it is not found when creating the package for Mac OS X.

parent dee9e710
...@@ -218,8 +218,12 @@ elseif(APPLE) ...@@ -218,8 +218,12 @@ elseif(APPLE)
configure_file("linphone.icns" "Linphone.app/Contents/Resources/linphone.icns" COPYONLY) configure_file("linphone.icns" "Linphone.app/Contents/Resources/linphone.icns" COPYONLY)
file(COPY "${LINPHONE_OUTPUT_DIR}/bin/linphone" DESTINATION "Linphone.app/Contents/MacOS") 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( 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) install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Linphone.app" DESTINATION "." USE_SOURCE_PERMISSIONS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment