mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
24 lines
395 B
CMake
24 lines
395 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(parser C)
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
file(GLOB source_files src/*.c)
|
|
|
|
add_library(parser
|
|
MODULE
|
|
${source_files}
|
|
)
|
|
set_target_properties(
|
|
parser
|
|
PROPERTIES
|
|
POSITION_INDEPENDENT_CODE ON
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
PREFIX ""
|
|
)
|
|
|
|
include_directories(src)
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|
|
|
|
# vim: set ft=cmake:
|