build: use GNUInstallDirs install destinations

So as to be compliant with distribution layouts, as recommend by:
https://cmake.org/cmake/help/latest/command/install.html#installing-files

Type: make
Change-Id: Ic46ace4f26aab1aa4902cbd013c40a92c480680d
Signed-off-by: Nick Brown <nickbroon@gmail.com>
This commit is contained in:
Nick Brown
2021-09-15 14:25:40 +01:00
committed by Damjan Marion
parent 8b99777263
commit e3cf4d0cf3
8 changed files with 12 additions and 11 deletions

View File

@ -58,7 +58,7 @@ add_vpp_executable(vpp_json_test ENABLE_EXPORTS NO_INSTALL
##############################################################################
install(
FILES vat.h json_format.h
DESTINATION include/vat
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vat
COMPONENT vpp-dev
)