init
All checks were successful
Build / Build project (push) Successful in 25s

This commit is contained in:
Alexander Zhirov 2025-09-23 14:51:37 +03:00
parent f235ea3aa3
commit 903d38c803
Signed by: alexander
GPG key ID: C8D8BE544A27C511
4 changed files with 49 additions and 0 deletions

16
files/CMakeLists.txt Normal file
View file

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.0)
project(linenoise VERSION 1.0.0 LANGUAGES C)
add_library(linenoise SHARED linenoise.c)
set_target_properties(linenoise PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1
PUBLIC_HEADER linenoise.h
)
install(TARGETS linenoise
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include
)

9
files/linenoise.pc Normal file
View file

@ -0,0 +1,9 @@
prefix=/usr
includedir=${prefix}/include
libdir=${prefix}/lib
Name: linenoise
Description: A small self-contained alternative to readline and libedit
Version: 1.0.0
Libs: -L${libdir} -llinenoise
Cflags: -I${includedir}