From eeadc14ee2c945eb53ae4cc3c6262499e896afb5 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 13 Sep 2018 20:02:12 +0200 Subject: cpack: add deb/rpm packaging to VPP module This allows easy packaging of external projects, including VOM and sample plugin. i.e. $ make -C build-root PLATFORM=vpp TAG=vpp sample-plugin-install $ ninja -C build-root/build-vpp-native/sample-plugin package ninja: Entering directory `build-root/build-vpp-native/sample-plugin' [0/1] Run CPack packaging tool... CPack: Create package using DEB CPack: Install projects CPack: - Install project: sample-plugin CPack: - Install component: vpp-plugin-sample CPack: - Install component: vpp-plugin-sample-dev CPack: Create package CPack: - package: build-root/build-vpp-native/sample-plugin/vpp-plugin-sample_18.10~rc0~413~g1433e9d1-1_amd64.deb generated. CPack: - package: build-root/build-vpp-native/sample-plugin/vpp-plugin-sample-dev_18.10~rc0~413~g1433e9d1-1_amd64.deb generated. Change-Id: I6b3ec2433961e53edd976b19659ce214d272c40a Signed-off-by: Damjan Marion --- src/examples/sample-plugin/CMakeLists.txt | 6 ++++++ src/examples/sample-plugin/sample/CMakeLists.txt | 2 ++ 2 files changed, 8 insertions(+) (limited to 'src/examples') diff --git a/src/examples/sample-plugin/CMakeLists.txt b/src/examples/sample-plugin/CMakeLists.txt index eac58fbc258..462e7221a94 100644 --- a/src/examples/sample-plugin/CMakeLists.txt +++ b/src/examples/sample-plugin/CMakeLists.txt @@ -8,3 +8,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) find_package(VPP) add_subdirectory(sample) + +add_vpp_packaging( + NAME "sample-plugin" + VENDOR "fd.io" + DESCRIPTION "VPP Sample Plugin" +) diff --git a/src/examples/sample-plugin/sample/CMakeLists.txt b/src/examples/sample-plugin/sample/CMakeLists.txt index f2fc1434492..fb159d12ef6 100644 --- a/src/examples/sample-plugin/sample/CMakeLists.txt +++ b/src/examples/sample-plugin/sample/CMakeLists.txt @@ -29,4 +29,6 @@ add_vpp_plugin(sample API_TEST_SOURCES sample_test.c + + COMPONENT vpp-plugin-sample ) -- cgit 1.2.3-korg