mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
20 lines
362 B
Plaintext
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)
|