Home Explore Blog CI



neovim

1st chunk of `cmake.deps/cmake/LpegCMakeLists.txt`
bf625873b38f16df1c5fbaddccd81e2d67c5f6060d6528700000000100000124
cmake_minimum_required(VERSION 3.16)
project (lpeg C)

include(GNUInstallDirs)

file(GLOB LPEG_SOURCES ${CMAKE_SOURCE_DIR}/*.c)
add_library(lpeg ${LPEG_SOURCES})

target_compile_options(lpeg PRIVATE -w)

install(TARGETS lpeg ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})

# vim: set ft=cmake:

Title: CMake Configuration for LPeg Library
Summary
This CMake script configures the build process for the LPeg (Parsing Expression Grammar) library written in C. It sets the minimum CMake version, defines the project name, includes GNUInstallDirs for standard installation locations, gathers source files, creates the library, sets compile options to suppress warnings, and defines the installation target for the library archive.