summaryrefslogtreecommitdiffstats
path: root/src/entrypoint/CMakeLists.txt
blob: 16c01540dd02cb7bc9d43999cb2139de99d6d4fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# special case begin
# special case skip regeneration
if (NOT WIN32)
    return()
endif()

qt_internal_add_module(EntryPoint
  STATIC
  NO_SYNC_QT
  NO_MODULE_HEADERS
  DEFINES
      QT_NO_FOREACH
  INCLUDE_DIRECTORIES
      $<TARGET_PROPERTY:Qt::Core,INTERFACE_INCLUDE_DIRECTORIES>
)

if (MSVC)
    # Store debug information inside the static lib
    qt_internal_replace_compiler_flags(
        "/Zi" "/Z7"
        CONFIGS DEBUG RELWITHDEBINFO
        IN_CURRENT_SCOPE)
endif()

qt_internal_extend_target(EntryPoint CONDITION WIN32
    SOURCES qtentrypoint_win.cpp
    LIBRARIES shell32
)

qt_internal_extend_target(EntryPoint CONDITION MINGW
    DEFINES QT_NEEDS_QMAIN
)
# special case end