From f2862392eee635425ad7aff24558d437c98992ac Mon Sep 17 00:00:00 2001 From: zinface Date: Thu, 21 Mar 2024 12:07:12 +0800 Subject: [PATCH] =?UTF-8?q?cmake-plugin:=20=E5=A4=84=E7=90=86=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E5=8D=A0=E4=BD=8D=E7=9A=84=E6=97=A0=E6=95=88=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/CMakeLists.txt | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/plugin/CMakeLists.txt b/src/plugin/CMakeLists.txt index 618ea37..cc46a13 100644 --- a/src/plugin/CMakeLists.txt +++ b/src/plugin/CMakeLists.txt @@ -40,24 +40,24 @@ if(USE_NOTEPAD_PLUGIN) # 一个使用引用构建的插件 # include(path/to/plugin.cmake) - # 一个简单的 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) + # # 一个简单的 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) + # # 一个简单的 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)