X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2FCMakeLists.txt;h=2cb76948591fb121158a1a98298e2881c3ea978a;hb=f22f4e562e1b922cff036ef628b77fd2d479d015;hp=a3cca5a918a8fa4322805256e9a6f27363f7e6f3;hpb=612dd6a955e44d2c0fed1801fb8de585ca695c63;p=vpp.git diff --git a/src/svm/CMakeLists.txt b/src/svm/CMakeLists.txt index a3cca5a918a..2cb76948591 100644 --- a/src/svm/CMakeLists.txt +++ b/src/svm/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2018-2019 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -14,49 +14,50 @@ ############################################################################## # svm shared library ############################################################################## -add_library(svm SHARED +add_vpp_library(svm + SOURCES + fifo_segment.c + message_queue.c + queue.c svm.c ssvm.c svm_fifo.c - svm_fifo_segment.c - queue.c - message_queue.c -) -target_link_libraries(svm vppinfra rt pthread) -install(TARGETS svm DESTINATION lib) -############################################################################## -# svmdb shared library -############################################################################## -add_library(svmdb SHARED svmdb.c) -target_link_libraries(svmdb svm vppinfra rt pthread) -install(TARGETS svmdb DESTINATION lib) + MULTIARCH_SOURCES + svm_fifo.c -############################################################################## -# svm headers -############################################################################## -vpp_add_header_files(svm + INSTALL_HEADERS + fifo_segment.h + fifo_types.h + message_queue.h + queue.h ssvm.h svm_common.h - svmdb.h svm_fifo.h - svm_fifo_segment.h - queue.h - message_queue.h svm.h + svmdb.h + + LINK_LIBRARIES vppinfra rt pthread ) ############################################################################## -# svm tools +# svmdb shared library ############################################################################## +add_vpp_library(svmdb + SOURCES svmdb.c + LINK_LIBRARIES svm vppinfra rt pthread + ) -add_executable (svmtool svmtool.c) -target_link_libraries (svmtool vppinfra svm) -add_executable (svmdbtool svmdbtool.c) -target_link_libraries (svmdbtool vppinfra svm svmdb) +############################################################################## +# svm tools +############################################################################## -install( - TARGETS svmtool svmdbtool - DESTINATION bin +add_vpp_executable(svmtool + SOURCES svmtool.c + LINK_LIBRARIES vppinfra svm ) +add_vpp_executable (svmdbtool + SOURCES svmdbtool.c + LINK_LIBRARIES vppinfra svm svmdb +)