cmake-plugin: 定义两个由 repo 管理的插件构建

This commit is contained in:
zinface 2023-12-21 17:32:48 +08:00
parent f9f82c66ca
commit cd91e69268
1 changed files with 19 additions and 0 deletions

View File

@ -29,6 +29,25 @@ if(USE_NOTEPAD_PLUGIN)
framework-plugins/helloworld
)
# plantuml
add_framework_plugin(framework-plantuml-preview
framework-plugins/plantuml-preview
framework-plugins/plantuml-preview/nplugin.qrc
)
if(framework-plantuml-preview_ENABLE)
find_package(Qt5Svg)
target_link_libraries(framework-plantuml-preview Qt5::Svg)
endif(framework-plantuml-preview_ENABLE)
# svg
add_framework_plugin(framework-svg-preview
framework-plugins/svg-preview
)
if(framework-svg-preview_ENABLE)
find_package(Qt5Svg)
target_link_libraries(framework-svg-preview Qt5::Svg)
endif(framework-svg-preview_ENABLE)
# opencc 项目(基于 git)
# add_subdirectory(opencc-demo-plugin)
# #