diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2a491934eb..4fe60448fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -295,6 +295,10 @@ if(APPLE) target_sources(shotcut PRIVATE ${APP_ICON}) set_source_files_properties(${APP_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") + #Create a symlink to the qml folder after building + file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Shotcut.app/Contents/Resources/) + file(CREATE_LINK ${CMAKE_SOURCE_DIR}/src/qml ${CMAKE_CURRENT_BINARY_DIR}/Shotcut.app/Contents/Resources/qml SYMBOLIC) + install(TARGETS shotcut BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}) install(DIRECTORY qml DESTINATION ${CMAKE_INSTALL_PREFIX}/Shotcut.app/Contents/Resources/shotcut/) endif()