mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
383018dbb8
Passing `CMAKE_POLICY_DEFAULT_CMP0092=NEW` to all dependencies is simpler than setting it manually in each file.
18 lines
388 B
CMake
18 lines
388 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(treesitter C)
|
|
|
|
add_compile_options(-w)
|
|
|
|
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
|
|
DESTINATION include/tree_sitter)
|
|
|
|
include(GNUInstallDirs)
|
|
install(TARGETS tree-sitter DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
# vim: set ft=cmake:
|