[OpenWrt-Devel] [PATCH] libnl-tiny: install pkgconfig file
    Rosen Penev 
    rosenp at gmail.com
       
    Mon Feb 10 00:21:09 EST 2020
    
    
  
This will allow getting rid of InstallDev in the Makefile.
It also allows compilation with CMAKE_BINARY_SUBDIR.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10bf4e8..581015c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,6 +32,7 @@ CONFIGURE_FILE(
 )
 
 INSTALL(TARGETS nl-tiny LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+INSTALL(FILES ${CMAKE_BINARY_DIR}/libnl-tiny.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 INSTALL(
 	DIRECTORY ${CMAKE_SOURCE_DIR}/include/
 	DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libnl-tiny
-- 
2.24.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
    
    
More information about the openwrt-devel
mailing list