X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2FCMakeLists.txt;h=32984c0cee95ba457deca37d5c4ecc1c5bd13db4;hb=9d22cb363e95d679f58481eb767eed81a58e8237;hp=0b9a505f158fbadddc243bafba828f440d9cd401;hpb=a606d92107d4bf0107c3f54e2c87d39311f82075;p=vpp.git diff --git a/src/vpp/CMakeLists.txt b/src/vpp/CMakeLists.txt index 0b9a505f158..32984c0cee9 100644 --- a/src/vpp/CMakeLists.txt +++ b/src/vpp/CMakeLists.txt @@ -51,7 +51,7 @@ foreach(file ${VPP_API_FILES}) FILES ${CMAKE_CURRENT_BINARY_DIR}/${file}.h ${CMAKE_CURRENT_BINARY_DIR}/${file}_enum.h ${CMAKE_CURRENT_BINARY_DIR}/${file}_types.h - DESTINATION include/vpp/${dir} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vpp/${dir} COMPONENT vpp-dev ) endforeach() @@ -64,7 +64,6 @@ set(VPP_SOURCES stats/stat_segment_provider.c api/api.c api/json_format.c - api/custom_dump.c api/types.c ) @@ -74,7 +73,6 @@ if(VPP_API_TEST_BUILTIN) api/api_main.c api/plugin.c api/types.c - ../vnet/arp/arp_test.c ) add_definitions(-DVPP_API_TEST_BUILTIN=1) endif() @@ -87,8 +85,6 @@ add_vpp_executable(vpp ) add_vpp_headers(vpp - api/vpe_msg_enum.h - api/vpe_all_api_h.h stats/stat_segment.h stats/stat_segment_shared.h ) @@ -133,8 +129,8 @@ add_vpp_library(vppmem_preload LINK_LIBRARIES vppinfra ) -install(FILES conf/startup.conf DESTINATION etc/vpp COMPONENT vpp) -install(FILES conf/80-vpp.conf DESTINATION etc/sysctl.d COMPONENT vpp) +install(FILES conf/startup.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/vpp COMPONENT vpp) +install(FILES conf/80-vpp.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sysctl.d COMPONENT vpp) ############################################################################## # VAT2 plugins @@ -143,6 +139,10 @@ add_vpp_test_library(vpp ${VPP_API_FILES} ) +add_vat_test_library(vpp + api/api_test.c +) + ############################################################################## # minimal interactive startup.conf - only if not present ##############################################################################