mirror of https://gitee.com/cxasm/notepad--.git
plugin-cmake: 补充模块的部分注释,导出 compile_commands.json
This commit is contained in:
parent
6c73b3530e
commit
07624d37a3
|
@ -48,7 +48,11 @@ set(NOTEPAD_PLUGIN_EXTERNAL_PLUGIN_INSTALL_DIRECTORY
|
|||
# ../../ 为 /usr/lib 目录
|
||||
# ../../../ 为 /usr 目录
|
||||
# ../../../include 为 /usr/include 目录
|
||||
# ../../../include/NotepadPlugin # 头文件目录
|
||||
# ../../../lib 为 /usr/lib 目录
|
||||
|
||||
# ../../../include/NotepadPlugin # (/usr)头文件目录(NOTEPAD_PLUGIN_INCLUDEDIR)
|
||||
# ../../NotepadPlugin # (/usr/lib)库文件目录(NOTEPAD_PLUGIN_LIBDIR)
|
||||
# ../../cmake # (/usr/lib)cmake文件目录(无需关心)
|
||||
set(NOTEPAD_PLUGIN_INCLUDEDIR
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../include/${NOTEPAD_PLUGIN}
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../include/${NOTEPAD_PLUGIN}/Qsci)
|
||||
|
@ -87,6 +91,11 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if(CMAKE_HOST_UNIX)
|
||||
# 在 Linux 中开启 compile_commands.json 文件输出,增强 clangd 能力
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
endif(CMAKE_HOST_UNIX)
|
||||
|
||||
# add_notepad_plugin(<PLUGIN_VAR> <PLUGIN_SRC> [...])
|
||||
# 此宏定义了,基于源代码文件构建 Notepad-- 插件时所需要的一系列流程内容
|
||||
macro(add_notepad_plugin PLUGIN_VAR PLUGIN_SRC)
|
||||
|
|
Loading…
Reference in New Issue