2020-10-05 14:49:53 +00:00
|
|
|
# Set up some internal requirements for the Startup target.
|
|
|
|
#
|
|
|
|
# The creation of the Startup target and its linkage setup happens in 2 places:
|
|
|
|
# - in src/corelib/CMakeLists.txt when building qtbase.
|
|
|
|
# - at find_package(Qt6Core) time.
|
|
|
|
#
|
|
|
|
# See _qt_internal_setup_startup_target() in Qt6CoreMacros.cmake for the implementation of that.
|
|
|
|
function(qt_internal_setup_startup_target)
|
|
|
|
set(dependent_target "Core")
|
|
|
|
|
2020-10-15 15:04:27 +00:00
|
|
|
# On windows, find_package(Qt6Core) should call find_package(Qt6EntryPoint) so that Startup can
|
|
|
|
# link against EntryPoint.
|
2020-10-05 14:49:53 +00:00
|
|
|
if(WIN32)
|
2020-10-15 15:04:27 +00:00
|
|
|
qt_record_extra_qt_package_dependency("${dependent_target}" EntryPoint "${PROJECT_VERSION}")
|
2020-10-05 14:49:53 +00:00
|
|
|
endif()
|
|
|
|
endfunction()
|