neovim/cmake.deps/cmake/TreesitterParserCMakeLists.txt
Justin M. Keyes f05a2891d3 build: rename build-related dirs
Problem:
Dirs "config", "packaging", and "third-party" are all closely related
but this is not obvious from the layout. This adds friction for new
contributors.

Solution:
- rename config/ to cmake.config/
- rename test/config/ to test/cmakeconfig/ because it is used in Lua
  tests: require('test.cmakeconfig.paths').
- rename packaging/ to cmake.packaging/
- rename third-party/ to cmake.deps/ (parallel with .deps/)
2022-06-28 04:02:29 -07:00

20 lines
362 B
Plaintext

cmake_minimum_required(VERSION 2.8.12)
# some parsers have c++ scanner, problem?
project(parser C) # CXX
add_library(parser
MODULE
src/parser.c
)
set_target_properties(
parser
PROPERTIES
POSITION_INDEPENDENT_CODE ON
OUTPUT_NAME ${PARSERLANG}
PREFIX ""
)
include_directories(src)
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)