2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2016-01-17 12:47:54 +00:00
|
|
|
|
|
|
|
# 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}
|
2017-12-16 08:44:26 +00:00
|
|
|
netapi32
|
|
|
|
userenv
|
2016-01-17 12:47:54 +00:00
|
|
|
opengl32
|
|
|
|
harfbuzz
|
|
|
|
jpeg
|
|
|
|
png
|
|
|
|
glib-2.0
|
|
|
|
winmm
|
2017-01-29 13:07:45 +00:00
|
|
|
dwmapi
|
|
|
|
uxtheme
|
2016-01-17 12:47:54 +00:00
|
|
|
ws2_32
|
|
|
|
intl
|
|
|
|
iconv
|
2017-06-02 14:07:52 +01:00
|
|
|
pcre2-16
|
|
|
|
version
|
2016-01-17 12:47:54 +00:00
|
|
|
z
|
2019-06-28 09:07:50 +01:00
|
|
|
zstd
|
2016-01-17 12:47:54 +00:00
|
|
|
)
|