mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
feat: create pkg-config file (#523)
This commit is contained in:
parent
89926dc820
commit
e50a75f231
@ -224,6 +224,8 @@ if(CLI11_INSTALL)
|
||||
NAMESPACE CLI11::
|
||||
FILE CLI11Targets.cmake)
|
||||
|
||||
include(cmake/CLI11GeneratePkgConfig.cmake)
|
||||
|
||||
# Register in the user cmake package registry
|
||||
export(PACKAGE CLI11)
|
||||
endif()
|
||||
|
9
cmake/CLI11.pc.in
Normal file
9
cmake/CLI11.pc.in
Normal file
@ -0,0 +1,9 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: CLI11
|
||||
Description: C++ command line parser
|
||||
Version: @PROJECT_VERSION@
|
||||
|
||||
Cflags: -I${includedir}
|
6
cmake/CLI11GeneratePkgConfig.cmake
Normal file
6
cmake/CLI11GeneratePkgConfig.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
configure_file("cmake/CLI11.pc.in" "CLI11.pc" @ONLY)
|
||||
|
||||
install(FILES "${PROJECT_BINARY_DIR}/CLI11.pc"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user