2023-10-14 04:12:48 -07:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2021-08-16 06:37:01 -07:00
|
|
|
project(parser C)
|
|
|
|
|
2023-11-20 04:42:54 -07:00
|
|
|
add_compile_options(-w)
|
|
|
|
|
2021-08-16 06:37:01 -07:00
|
|
|
file(GLOB source_files src/*.c)
|
2020-01-31 15:40:02 -07:00
|
|
|
|
|
|
|
add_library(parser
|
|
|
|
MODULE
|
2021-08-16 06:37:01 -07:00
|
|
|
${source_files}
|
2020-01-31 15:40:02 -07:00
|
|
|
)
|
|
|
|
set_target_properties(
|
|
|
|
parser
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME ${PARSERLANG}
|
|
|
|
PREFIX ""
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(src)
|
|
|
|
|
|
|
|
install(TARGETS parser LIBRARY DESTINATION lib/nvim/parser)
|
2022-10-21 02:47:27 -07:00
|
|
|
|
|
|
|
# vim: set ft=cmake:
|