b5af140809
The use-case is relevant for other platforms as well. Now that Qt has a module system we can also replace a lot of the hand crafted logic for linking with simpler constructs. Change-Id: Ib6853aaf81bfea79c31f2de741d65b4b56f23ef6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
17 lines
681 B
CMake
17 lines
681 B
CMake
# 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")
|
|
|
|
# On windows, find_package(Qt6Core) should call find_package(Qt6EntryPoint) so that Startup can
|
|
# link against EntryPoint.
|
|
if(WIN32)
|
|
qt_record_extra_qt_package_dependency("${dependent_target}" EntryPoint "${PROJECT_VERSION}")
|
|
endif()
|
|
endfunction()
|