summaryrefslogtreecommitdiffstats
path: root/src/qttools-test/CMakeLists.txt
blob: 320056ad99b285319bd5edb0847aeec7026d3c83 (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
# This file is part of MXE. See LICENSE.md for licensing information.

# Source: https://github.com/mxe/mxe/issues/1185

cmake_minimum_required(VERSION 3.0)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui UiTools)

include_directories(${Qt5UiTools_INCLUDE_DIRS})
add_executable(mxe-cmake-qtuitools mxe-cmake-qtuitools.cpp)
# NB: Qt5Widgets, Qt5Gui, Qt5Core must be given separately; otherwise they are
# appended automatically at the end, making it impossible to satisfy all the
# other implicit dependencies (opengl, harfbuzz, etc.)
target_link_libraries(
    mxe-cmake-qtuitools
    ${Qt5UiTools_LIBRARIES}
    ${Qt5Widgets_LIBRARIES}
    ${Qt5Gui_LIBRARIES}
    ${Qt5Core_LIBRARIES}
    opengl32
    harfbuzz
    jpeg
    png
    glib-2.0
    winmm
    dwmapi
    uxtheme
    ws2_32
    intl
    iconv
    pcre2-16
    version
    z
)