cmake-plugin: 处理空白占位的无效构建内容

This commit is contained in:
zinface 2024-03-21 12:07:12 +08:00
parent b6c27ca8b7
commit f2862392ee
1 changed files with 17 additions and 17 deletions

View File

@ -40,24 +40,24 @@ if(USE_NOTEPAD_PLUGIN)
# 使 # 使
# include(path/to/plugin.cmake) # include(path/to/plugin.cmake)
# plantuml # # plantuml
add_framework_plugin(framework-plantuml-preview # add_framework_plugin(framework-plantuml-preview
framework-plugins/plantuml-preview # framework-plugins/plantuml-preview
framework-plugins/plantuml-preview/nplugin.qrc # framework-plugins/plantuml-preview/nplugin.qrc
) # )
if(framework-plantuml-preview_ENABLE) # if(framework-plantuml-preview_ENABLE)
find_package(Qt5Svg) # find_package(Qt5Svg)
target_link_libraries(framework-plantuml-preview Qt5::Svg) # target_link_libraries(framework-plantuml-preview Qt5::Svg)
endif(framework-plantuml-preview_ENABLE) # endif(framework-plantuml-preview_ENABLE)
# svg # # svg
add_framework_plugin(framework-svg-preview # add_framework_plugin(framework-svg-preview
framework-plugins/svg-preview # framework-plugins/svg-preview
) # )
if(framework-svg-preview_ENABLE) # if(framework-svg-preview_ENABLE)
find_package(Qt5Svg) # find_package(Qt5Svg)
target_link_libraries(framework-svg-preview Qt5::Svg) # target_link_libraries(framework-svg-preview Qt5::Svg)
endif(framework-svg-preview_ENABLE) # endif(framework-svg-preview_ENABLE)
# opencc 项目(基于 git) # opencc 项目(基于 git)
# add_subdirectory(opencc-demo-plugin) # add_subdirectory(opencc-demo-plugin)