Home Explore Blog CI



neovim

cmake.deps/cmake/LpegCMakeLists.txt
f2ab9605fe709a7d6aab06a5603b617def3239cb66e5ed590000000300000124
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:

Chunks
bf625873 (1st chunk of `cmake.deps/cmake/LpegCMakeLists.txt`)
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.