Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created November 11, 2020 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/4d8665c100912cbad231de31598e6a77 to your computer and use it in GitHub Desktop.
Save torarnv/4d8665c100912cbad231de31598e6a77 to your computer and use it in GitHub Desktop.
diff --git i/src/entrypoint/CMakeLists.txt w/src/entrypoint/CMakeLists.txt
index 67b3977065e..a5981d2059b 100644
--- i/src/entrypoint/CMakeLists.txt
+++ w/src/entrypoint/CMakeLists.txt
@@ -106,6 +106,15 @@ if(using_entrypoint_library)
set(export_name "${INSTALL_CMAKE_NAMESPACE}EntryPointTargets")
qt_install(TARGETS EntryPointImplementation EXPORT ${export_name})
qt_generate_prl_file(EntryPointImplementation "${INSTALL_LIBDIR}")
+
+ set(install_prefix "${INSTALL_CMAKE_NAMESPACE}EntryPoint")
+ qt_path_join(config_install_dir ${QT_CONFIG_INSTALL_DIR} ${install_prefix})
+
+ qt_internal_export_modern_cmake_config_targets_file(
+ TARGETS EntryPointImplementation
+ EXPORT_NAME_PREFIX "${install_prefix}"
+ CONFIG_INSTALL_DIR "${config_install_dir}"
+ )
endif()
# special case end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment