TreesitterParserCMakeLists.txt 362 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 2.8.12)
  2. # some parsers have c++ scanner, problem?
  3. project(parser C) # CXX
  4. add_library(parser
  5. MODULE
  6. src/parser.c
  7. )
  8. set_target_properties(
  9. parser
  10. PROPERTIES
  11. POSITION_INDEPENDENT_CODE ON
  12. OUTPUT_NAME ${PARSERLANG}
  13. PREFIX ""
  14. )
  15. include_directories(src)
  16. install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)