diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1f12c87..76d11cc43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -407,6 +407,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") if((${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable") AND (NOT NO_PRINTING)) install(DIRECTORY ${Grantlee5_DIR}/../../grantlee DESTINATION ${PLUGINDIR}) endif() + if(NO_MARBLE) + install(CODE "execute_process(COMMAND mkdir -p ${PLUGINDIR}/geoservices)") + install(CODE "execute_process(COMMAND cp ${_qt5Core_install_prefix}/plugins/geoservices/libqtgeoservices_esri.dylib ${PLUGINDIR}/geoservices)") + endif() # this is a hack - but I don't know how else to find the macdeployqt program if it's not in the PATH string(REPLACE moc macdeployqt MACDEPLOYQT ${QT_MOC_EXECUTABLE}) install(CODE "execute_process(COMMAND ${MACDEPLOYQT} ${APP_BUNDLE_DIR} ${MACDEPLOY_ARGS})")