neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

TreesitterParserCMakeLists.txt (362B)


      1 cmake_minimum_required(VERSION 3.16)
      2 project(parser C)
      3 
      4 add_compile_options(-w)
      5 
      6 file(GLOB source_files src/*.c)
      7 
      8 add_library(parser
      9  MODULE
     10  ${source_files}
     11 )
     12 set_target_properties(
     13  parser
     14  PROPERTIES
     15    OUTPUT_NAME ${PARSERLANG}
     16    PREFIX ""
     17 )
     18 
     19 include_directories(src)
     20 
     21 install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
     22 
     23 # vim: set ft=cmake: