X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2FCMakeLists.txt;h=92a4348dba4584fd9797202e36bc8a801c64c7f2;hb=03328ec8bb86b93fa70bb6b2a9b37c40e686a1f7;hp=8c87167218c1bc727c0fcc5e562be8457f45a4ce;hpb=d3125833d5f93116a88468d532da123d061a7cd1;p=vpp.git diff --git a/extras/vom/vom/CMakeLists.txt b/extras/vom/vom/CMakeLists.txt index 8c87167218c..92a4348dba4 100644 --- a/extras/vom/vom/CMakeLists.txt +++ b/extras/vom/vom/CMakeLists.txt @@ -50,10 +50,11 @@ if(ACL_FILE) acl_binding.cpp acl_ethertype_cmds.cpp acl_ethertype.cpp + acl_l2_list.cpp acl_l2_rule.cpp + acl_l3_list.cpp acl_l3_rule.cpp acl_list_cmds.cpp - acl_list.cpp acl_types.cpp ) endif() @@ -93,6 +94,7 @@ if(GBP_FILE) gbp_rule.cpp gbp_subnet_cmds.cpp gbp_subnet.cpp + gbp_types.hpp gbp_vxlan.cpp gbp_vxlan_cmds.cpp ) @@ -165,6 +167,16 @@ list(APPEND VOM_SOURCES pipe.cpp pipe_cmds.cpp prefix.cpp + qos_map.cpp + qos_map_cmds.cpp + qos_mark.cpp + qos_mark_cmds.cpp + qos_record.cpp + qos_record_cmds.cpp + qos_store.cpp + qos_store_cmds.cpp + qos_types.cpp + qos_types_api.cpp ra_config.cpp ra_prefix.cpp route.cpp @@ -189,7 +201,8 @@ if(ACL_FILE) acl_ethertype.hpp acl_l2_rule.hpp acl_l3_rule.hpp - acl_list.hpp + acl_l3_list.hpp + acl_l2_list.hpp acl_types.hpp ) endif() @@ -218,6 +231,7 @@ if(GBP_FILE) gbp_route_domain.hpp gbp_rule.hpp gbp_subnet.hpp + gbp_types.hpp gbp_vxlan.hpp ) endif() @@ -265,6 +279,11 @@ list(APPEND VOM_HEADERS om.hpp pipe.hpp prefix.hpp + qos_map.hpp + qos_mark.hpp + qos_record.hpp + qos_store.hpp + qos_types.hpp ra_config.hpp ra_prefix.hpp route.hpp @@ -281,18 +300,15 @@ list(APPEND VOM_HEADERS vxlan_tunnel.hpp ) -add_definitions(-Wall -Werror -std=gnu++11) - -add_vpp_library(vom - SOURCES ${VOM_SOURCES} - - INSTALL_HEADERS ${VOM_HEADERS} - - LINK_LIBRARIES ${VPPAPICLIENT_LIB} ${VAPICLIENT_LIB} Threads::Threads - ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} m rt - - COMPONENT libvom -) +add_definitions(-Wall -Werror -std=gnu++11 -g) +add_library(vom SHARED ${VOM_SOURCES}) +if (VOM_LIB_VERSION) + set_target_properties(vom PROPERTIES SOVERSION ${VOM_LIB_VERSION}) +endif() +target_link_libraries(vom ${VPPAPICLIENT_LIB} ${VAPICLIENT_LIB} Threads::Threads + ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} m rt) +install(TARGETS vom DESTINATION lib COMPONENT vom) +install(FILES ${VOM_HEADERS} DESTINATION include/vom COMPONENT vom) if (Boost_FOUND) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")