48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
# This file is part of Desktop App Toolkit,
|
|
# a set of libraries for developing nice desktop applications.
|
|
#
|
|
# For license and copyright information please follow this link:
|
|
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
|
|
|
add_library(external_qt_static_plugins OBJECT)
|
|
add_library(desktop-app::external_qt_static_plugins ALIAS external_qt_static_plugins)
|
|
init_target(external_qt_static_plugins "(external)")
|
|
|
|
nice_target_sources(external_qt_static_plugins ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PRIVATE
|
|
qt_static_plugins.cpp
|
|
)
|
|
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_qt
|
|
desktop-app::external_kimageformats
|
|
)
|
|
|
|
if (DESKTOP_APP_USE_PACKAGED)
|
|
target_compile_definitions(external_qt_static_plugins
|
|
PRIVATE
|
|
QT_STATIC_PLUGINS_USE_PACKAGED
|
|
)
|
|
endif()
|
|
|
|
if (LINUX)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_nimf_qt5
|
|
)
|
|
|
|
if (TARGET Qt::DBus AND NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_fcitx5_qt
|
|
)
|
|
endif()
|
|
|
|
if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_hime_qt
|
|
)
|
|
endif()
|
|
endif()
|