mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 12:15:06 -07:00
cd613712b1
This reduces platform-specific differences and the amount of code.
17 lines
409 B
CMake
17 lines
409 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(tree-sitter LANGUAGES C)
|
|
|
|
add_library(tree-sitter lib/src/lib.c)
|
|
target_include_directories(tree-sitter
|
|
PRIVATE lib/src lib/include)
|
|
|
|
install(FILES
|
|
lib/include/tree_sitter/api.h
|
|
lib/include/tree_sitter/parser.h
|
|
DESTINATION include/tree_sitter)
|
|
|
|
include(GNUInstallDirs)
|
|
install(TARGETS tree-sitter DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
# vim: set ft=cmake:
|