2024-09-21 08:51:36 -07:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
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:
|