diff options
author | Damjan Marion <damarion@cisco.com> | 2018-09-13 20:02:12 +0200 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-09-14 14:00:51 +0000 |
commit | eeadc14ee2c945eb53ae4cc3c6262499e896afb5 (patch) | |
tree | 544d348cf19b7635dee5eb266b83827ecd8801ce /src/cmake/library.cmake | |
parent | 77bc1a5fb1d5b08e9fc24fc1190a5d640aabd2a1 (diff) |
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 <damarion@cisco.com>
Diffstat (limited to 'src/cmake/library.cmake')
-rw-r--r-- | src/cmake/library.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake index b9e4f9b4bd8..984d6eb8d75 100644 --- a/src/cmake/library.cmake +++ b/src/cmake/library.cmake @@ -66,7 +66,7 @@ macro(add_vpp_library lib) install( FILES ${file} DESTINATION include/${lib}/${dir} - COMPONENT vpp-dev + COMPONENT ${ARG_COMPONENT}-dev ) endforeach() endif() |