vpp: install version.h 01/38701/2
authorOle Troan <ot@cisco.com>
Tue, 18 Apr 2023 14:24:53 +0000 (16:24 +0200)
committerOle Tr�an <otroan@employees.org>
Tue, 18 Apr 2023 20:18:24 +0000 (20:18 +0000)
To make out of tree plugins require a particular version, they need
access to the version they are built with. Install version.h.

Type: fix
Change-Id: I5916d0a16aed7e054ede452af956fee56cd078f0
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp/CMakeLists.txt

index 44c1f6d..37f57ac 100644 (file)
@@ -28,6 +28,12 @@ add_custom_target(vpp_version_h
   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/app/version.h
 )
 
+install(
+  FILES ${CMAKE_CURRENT_BINARY_DIR}/app/version.h
+  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vpp/app
+  COMPONENT vpp-dev
+)
+
 ##############################################################################
 # vpp binary
 ##############################################################################