plugin-cmake: 补充模块的部分注释,导出 compile_commands.json

This commit is contained in:
zinface 2023-02-10 09:41:59 +08:00
parent 6c73b3530e
commit 07624d37a3
1 changed files with 10 additions and 1 deletions

View File

@ -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)