summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2020-02-10 05:21:09 +0000
committerPetr Štetiar2020-07-11 11:42:34 +0000
commit2584ebc642b2eac6455cd15a7d6bd3b30369cb9d (patch)
treedbc55c1864134d07badf4e1b8fe5f908526b1c57
parent0219008cc8767655d7e747497e8e1133a3e8f840 (diff)
downloadlibnl-tiny-2584ebc642b2eac6455cd15a7d6bd3b30369cb9d.tar.gz
libnl-tiny: install pkgconfig file
This will allow getting rid of InstallDev in the Makefile. It also allows compilation with CMAKE_BINARY_SUBDIR. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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