mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
383018dbb8
Passing `CMAKE_POLICY_DEFAULT_CMP0092=NEW` to all dependencies is simpler than setting it manually in each file.
24 lines
362 B
CMake
24 lines
362 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(parser C)
|
|
|
|
add_compile_options(-w)
|
|
|
|
file(GLOB source_files src/*.c)
|
|
|
|
add_library(parser
|
|
MODULE
|
|
${source_files}
|
|
)
|
|
set_target_properties(
|
|
parser
|
|
PROPERTIES
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
PREFIX ""
|
|
)
|
|
|
|
include_directories(src)
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|
|
|
|
# vim: set ft=cmake:
|