mirror of https://gitee.com/cxasm/notepad--.git
cmake-plugin: 在 hello-simple 中调整“共享的资源文件”默认模板配置
This commit is contained in:
parent
5a78b0b7d5
commit
1346c6ad6a
|
@ -214,7 +214,7 @@ void Hello::registerPluginActions(QMenu *rootMenu)
|
||||||
QTextStream fcmakeout(&fcmake);
|
QTextStream fcmakeout(&fcmake);
|
||||||
fcmakeout.setCodec("utf-8");
|
fcmakeout.setCodec("utf-8");
|
||||||
fcmakeout.setGenerateByteOrderMark(true); // with Bom
|
fcmakeout.setGenerateByteOrderMark(true); // with Bom
|
||||||
fcmakeout << txt.split("\n").mid(29,29).join("\n").replace(existDir, "${CMAKE_CURRENT_LIST_DIR}");
|
fcmakeout << txt.split("\n").mid(29,28).join("\n").replace(existDir, "${CMAKE_CURRENT_LIST_DIR}");
|
||||||
fcmakeout << txt.split("\n").mid(8,10).join("\n").replace(existDir, "${CMAKE_CURRENT_LIST_DIR}");
|
fcmakeout << txt.split("\n").mid(8,10).join("\n").replace(existDir, "${CMAKE_CURRENT_LIST_DIR}");
|
||||||
fcmake.close();
|
fcmake.close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,11 @@ endif(framework-plugintemplate_ENABLE)
|
||||||
# 提供给其它插件项目引用的共享资源(如果其它插件想通过框架构建引用的话)
|
# 提供给其它插件项目引用的共享资源(如果其它插件想通过框架构建引用的话)
|
||||||
if(FRAMEWORK_WANT_INCLUDE)
|
if(FRAMEWORK_WANT_INCLUDE)
|
||||||
message("-- [PLUGIN EXPORT]: FRAMEWORK_WANT_INCLUDE?")
|
message("-- [PLUGIN EXPORT]: FRAMEWORK_WANT_INCLUDE?")
|
||||||
set(FRAMEWORK_INCLUDE_EXPORTS # 共享的引用目录
|
set(FRAMEWORK_INCLUDE_EXPORTS # 共享的引用目录 - 用于 include
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src
|
# ${CMAKE_CURRENT_LIST_DIR}/src
|
||||||
)
|
)
|
||||||
set(FRAMEWORK_SOURCES_EXPORTS # 共享的资源文件
|
set(FRAMEWORK_SOURCES_EXPORTS # 共享的资源文件 - 用于 构建
|
||||||
# ${CMAKE_CURRENT_LIST_DIR}/src/config.h # 通用的 qDebug 配置定义
|
# ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp
|
||||||
# ${CMAKE_CURRENT_LIST_DIR}/src/utils/qrcutil.* # 简化读取 qrc 资源文件内容
|
|
||||||
)
|
)
|
||||||
set(FRAMEWORK_WITHGIT_EXPORTS # 共享的引用构建资源
|
set(FRAMEWORK_WITHGIT_EXPORTS # 共享的引用构建资源
|
||||||
# 1. 引用了公共存储库
|
# 1. 引用了公共存储库
|
||||||
|
|
Loading…
Reference in New Issue