neovim/cmake.deps/cmake/TreesitterCMakeLists.txt
2024-09-21 23:42:03 +02:00

18 lines
401 B
CMake

cmake_minimum_required(VERSION 3.16)
project(treesitter C)
add_compile_options(-w)
add_library(tree-sitter lib/src/lib.c)
target_include_directories(tree-sitter
PRIVATE lib/src lib/src/wasm lib/include)
install(FILES
lib/include/tree_sitter/api.h
DESTINATION include/tree_sitter)
include(GNUInstallDirs)
install(TARGETS tree-sitter DESTINATION ${CMAKE_INSTALL_LIBDIR})
# vim: set ft=cmake: