-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GUI config tool on path addon/rime/custom_config
- Loading branch information
Showing
16 changed files
with
1,935 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
set(REQUIRED_QT5_VERSION 5.7) | ||
|
||
find_package(Qt5 ${REQUIRED_QT5_VERSION} CONFIG REQUIRED COMPONENTS Core Widgets) | ||
find_package(Fcitx5Qt5WidgetsAddons REQUIRED) | ||
|
||
set(RIME_CONFIG_SRCS | ||
Main.cpp | ||
ConfigMain.cpp | ||
Model.cpp | ||
RimeConfigParser.cpp | ||
keylistwidget.cpp) | ||
|
||
set(RIME_CONFIG_HDRS | ||
Main.h | ||
ConfigMain.h | ||
Model.h | ||
Common.h | ||
RimeConfigParser.h | ||
keylistwidget.h) | ||
|
||
add_library(rime-config | ||
MODULE ${RIME_CONFIG_SRCS}) | ||
|
||
target_include_directories(rime-config PRIVATE ${PROJECT_SOURCE_DIR}/gui) | ||
|
||
set_target_properties(rime-config PROPERTIES | ||
LINK_FLAGS "-Wl,--no-undefined" | ||
AUTOMOC TRUE | ||
AUTOUIC TRUE | ||
AUTOUIC_OPTIONS "-tr=fcitx::tr2fcitx;--include=fcitxqti18nhelper.h") | ||
|
||
target_link_libraries(rime-config | ||
Qt5::Widgets | ||
Fcitx5::Core | ||
Fcitx5Qt5::WidgetsAddons | ||
PkgConfig::Rime) | ||
|
||
install(TARGETS rime-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/fcitx5/qt5) |
Oops, something went wrong.