TreesitterParserCMakeLists.txt 362 B

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