mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
29 lines
649 B
CMake
29 lines
649 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(${PARSERLANG} C)
|
|
|
|
add_compile_options(-w)
|
|
|
|
add_library(markdown MODULE
|
|
tree-sitter-markdown/src/parser.c
|
|
tree-sitter-markdown/src/scanner.c)
|
|
target_include_directories(markdown
|
|
PRIVATE
|
|
tree-sitter-markdown/src)
|
|
|
|
add_library(markdown_inline MODULE
|
|
tree-sitter-markdown-inline/src/parser.c
|
|
tree-sitter-markdown-inline/src/scanner.c)
|
|
target_include_directories(markdown_inline
|
|
PRIVATE
|
|
tree-sitter-markdown-inline/src)
|
|
|
|
set_target_properties(
|
|
markdown markdown_inline
|
|
PROPERTIES
|
|
PREFIX ""
|
|
)
|
|
|
|
install(TARGETS markdown markdown_inline LIBRARY DESTINATION lib/nvim/parser)
|
|
|
|
# vim: set ft=cmake:
|