Debian Codegraph @

gui/pinyindictmanager/CMakeLists.txt

raw
1 set(DICTMANAGER_SOURCES
2 main.cpp
3 pinyindictmanager.cpp
4 processrunner.cpp
5 pipeline.cpp
6 pipelinejob.cpp
7 log.cpp
8 renamefile.cpp
9 filelistmodel.cpp
10 )
11
12 if (ENABLE_BROWSER)
13 list(APPEND DICTMANAGER_SOURCES browserdialog.cpp filedownloader.cpp)
14 set(BROWSER_TARGET Qt${QT_MAJOR_VERSION}::WebEngineWidgets)
15 endif()
16
17 add_library(pinyindictmanager MODULE ${DICTMANAGER_SOURCES})
18 target_link_libraries(pinyindictmanager Fcitx5Qt${QT_MAJOR_VERSION}::WidgetsAddons ${BROWSER_TARGET} Qt${QT_MAJOR_VERSION}::Concurrent)
19 set_target_properties(pinyindictmanager PROPERTIES AUTOMOC TRUE AUTOUIC TRUE AUTOUIC_OPTIONS "-tr=fcitx::tr2fcitx;--include=fcitxqti18nhelper.h")
20
21 install(TARGETS pinyindictmanager DESTINATION ${CMAKE_INSTALL_LIBDIR}/fcitx5/qt${QT_MAJOR_VERSION})