From 8df05c3c7161ee46fab138bf3d84e144009465e9 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Wed, 21 Aug 2024 11:02:39 +0200 Subject: [PATCH] lib/formats: install protobuf header Signed-off-by: Niklas Eiling --- lib/formats/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/formats/CMakeLists.txt b/lib/formats/CMakeLists.txt index 67afa3cbc..f50538684 100644 --- a/lib/formats/CMakeLists.txt +++ b/lib/formats/CMakeLists.txt @@ -41,6 +41,15 @@ if(DEFINED PROTOBUFC_COMPILER AND PROTOBUFC_FOUND) list(APPEND LIBRARIES PkgConfig::PROTOBUFC ) + + install( + DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/villas + COMPONENT devel + FILES_MATCHING + PATTERN "*.h" + PATTERN "*.hpp" + ) endif() list(APPEND FORMAT_SRC