CMakeLists.txt 806 B

1234567891011121314151617
  1. # Check if varialbe MAC_INSTALLER_BACKGROUND_FILE is defined.
  2. # Make sure that the MAC_INSTALLER_BACKGROUND_FILE contains the full path, ie.
  3. # includes CMAKE_SOURCE_DIR or so.
  4. if (DEFINED MAC_INSTALLER_BACKGROUND_FILE )
  5. set(MAC_INSTALLER_DO_CUSTOM_BACKGROUND "1")
  6. else()
  7. set(MAC_INSTALLER_DO_CUSTOM_BACKGROUND "0")
  8. endif()
  9. find_package(Qt5 5.15 COMPONENTS Core REQUIRED)
  10. configure_file(create_mac.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/create_mac.sh)
  11. configure_file(macosx.pkgproj.cmake ${CMAKE_CURRENT_BINARY_DIR}/macosx.pkgproj)
  12. configure_file(pre_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/pre_install.sh)
  13. configure_file(post_install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/post_install.sh)
  14. configure_file(QtWebEngineProcess.entitlements ${CMAKE_CURRENT_BINARY_DIR}/QtWebEngineProcess.entitlements)