CMakeLists.txt 917 B

12345678910111213141516171819
  1. # Check if varialbe MAC_INSTALLER_BACKGROUND_FILE is defined. That might come
  2. # from the OEM.cmake for branded clients or from NEXTCLOUD.cmake for the non
  3. # branded client.
  4. # Make sure that the MAC_INSTALLER_BACKGROUND_FILE contains the full path, ie.
  5. # includes CMAKE_SOURCE_DIR or so.
  6. if (DEFINED MAC_INSTALLER_BACKGROUND_FILE )
  7. set(MAC_INSTALLER_DO_CUSTOM_BACKGROUND "1")
  8. else()
  9. set(MAC_INSTALLER_DO_CUSTOM_BACKGROUND "0")
  10. endif()
  11. find_package(Qt5 5.12 COMPONENTS Core REQUIRED)
  12. configure_file(create_mac.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/create_mac.sh)
  13. configure_file(macosx.pkgproj.cmake ${CMAKE_CURRENT_BINARY_DIR}/macosx.pkgproj)
  14. configure_file(pre_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/pre_install.sh)
  15. configure_file(post_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/post_install.sh)
  16. configure_file(QtWebEngineProcess.entitlements ${CMAKE_CURRENT_BINARY_DIR}/QtWebEngineProcess.entitlements)