summaryrefslogtreecommitdiffstats
path: root/cmake/QtStartupHelpers.cmake
blob: 0ec431cbf468becfe33147377372db3695a5ed57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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()