Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wyzdwdz committed Apr 16, 2024
1 parent 4f0c34e commit aa27b4d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ set(THIRD_PARTY_LIBS Qt::Core
httplib::httplib)

if(LINUX)
list(APPEND THIRD_PARTY_LIBS fcitx5platforminputcontextplugin-qt6
Qt::QXcbIntegrationPlugin
Qt::QIbusPlatformInputContextPlugin
Qt::QComposePlatformInputContextPlugin)
elseif(WIN32)
list(APPEND THIRD_PARTY_LIBS Qt::QWindowsIntegrationPlugin)
elseif(APPLE)
list(APPEND THIRD_PARTY_LIBS Qt::QCocoaIntegrationPlugin)
list(APPEND THIRD_PARTY_LIBS fcitx5platforminputcontextplugin-qt6)
endif()

set(TARGET_SOURCES main.cc
Expand Down Expand Up @@ -47,6 +40,16 @@ set(CMAKE_AUTOUIC ON)

add_executable(${TARGET_NAME} ${TARGET_SOURCES})

if(LINUX)
qt_import_plugins(${TARGET_NAME} INCLUDE Qt::QXcbIntegrationPlugin
Qt::QIbusPlatformInputContextPlugin
Qt::QComposePlatformInputContextPlugin)
elseif(WIN32)
qt_import_plugins(${TARGET_NAME} INCLUDE Qt::QWindowsIntegrationPlugin)
elseif(APPLE)
qt_import_plugins(${TARGET_NAME} INCLUDE Qt::QCocoaIntegrationPlugin)
endif()

target_sources(${TARGET_NAME} PRIVATE ${QT_RESOURCES} ${TARGET_RESOURCES})

target_link_libraries(${TARGET_NAME} PRIVATE ${THIRD_PARTY_LIBS} libassfonts)
Expand Down

0 comments on commit aa27b4d

Please sign in to comment.