feat(cmake): add support

This commit is contained in:
Lewis Russell 2023-08-18 10:28:43 +01:00
parent a17c31268b
commit 5dd8c21211
3 changed files with 101 additions and 1 deletions

View file

@ -21,6 +21,7 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
- [x] `c`
- [x] `c_sharp`
- [x] `capnp`
- [x] `cmake`
- [x] `cpp`
- [x] `css`
- [x] `cuda`
@ -76,7 +77,6 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
- [ ] `blueprint`
- [ ] `chatito`
- [ ] `clojure`
- [ ] `cmake`
- [ ] `commonlisp`
- [ ] `cooklang`
- [ ] `cpon`

View file

@ -0,0 +1,9 @@
[
(if_condition)
(foreach_loop)
(while_loop)
(function_def)
(macro_def)
(block_def)
(normal_command)
] @context

91
test/test.cmake Normal file
View file

@ -0,0 +1,91 @@
foreach(subdir
os
api
api/private
msgpack_rpc
tui
event
eval
lua
viml
viml/parser
)
if(WIN32)
add_custom_command(
OUTPUT ${GEN_EVAL_FILES}
COMMAND ${PROJECT_SOURCE_DIR}/scripts/gen_eval_files.lua
DEPENDS
${API_METADATA}
${PROJECT_SOURCE_DIR}/scripts/gen_eval_files.lua
${PROJECT_SOURCE_DIR}/src/nvim/eval.lua
${PROJECT_SOURCE_DIR}/src/nvim/options.lua
${PROJECT_SOURCE_DIR}/runtime/doc/api.mpack
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
elseif(APPLE)
endif()
endforeach()