2022-08-03 05:56:57 -07:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2021-08-16 06:37:01 -07:00
|
|
|
project(parser C)
|
|
|
|
|
2022-09-06 14:31:44 -07:00
|
|
|
set(CMAKE_C_STANDARD 99)
|
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:
|