diff options
Diffstat (limited to 'cmake/FindTreeSitter.cmake')
-rw-r--r-- | cmake/FindTreeSitter.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindTreeSitter.cmake b/cmake/FindTreeSitter.cmake new file mode 100644 index 0000000000..ae0928e9f7 --- /dev/null +++ b/cmake/FindTreeSitter.cmake @@ -0,0 +1,11 @@ +# - Try to find tree-sitter +# Once done, this will define +# +# TreeSitter_FOUND - system has tree-sitter +# TreeSitter_INCLUDE_DIRS - the tree-sitter include directories +# TreeSitter_LIBRARIES - link these to use tree-sitter + +include(LibFindMacros) + +libfind_pkg_detect(TreeSitter tree-sitter FIND_PATH tree_sitter/api.h FIND_LIBRARY tree-sitter) +libfind_process(TreeSitter) |