enhance list decode & provide pkgconfig data

This commit is contained in:
Rongsong Shen 2025-09-05 14:54:01 +08:00
parent a86c5ab151
commit c1fe4d4a53
3 changed files with 32 additions and 10 deletions

View file

@ -7,6 +7,8 @@ else()
endif()
project(c-capnproto LANGUAGES ${languages})
configure_file(c-capnproto.pc.in c-capnproto.pc)
include(CTest)
# set(CMAKE_C_STANDARD 11)
@ -168,6 +170,8 @@ if(C_CAPNPROTO_ENABLE_INSTALL)
NAMESPACE CapnC::
FILE CapnCConfig.cmake)
install(FILES lib/capnp_c.h TYPE INCLUDE)
install(FILES c-capnproto.pc
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()
add_subdirectory(examples/book)