summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/CMakeLists.txt
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-26 11:04:40 +0200
committerDamjan Marion <damarion@cisco.com>2018-08-26 13:50:53 +0200
commit4553c95ab7cac75838433fdd5cd3c0d0c1d6e2e6 (patch)
tree248b50ad7df32be9f1662920ed9c322e23de6b91 /src/vpp-api/CMakeLists.txt
parentd16004d56c22635a0e21b177933dc39b65a3642a (diff)
cmake: add add_vpp_library and add_vpp_executable macros
Change-Id: I1382021a6f616571b4b3243ba8c8999239d10815 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vpp-api/CMakeLists.txt')
-rw-r--r--src/vpp-api/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vpp-api/CMakeLists.txt b/src/vpp-api/CMakeLists.txt
index 9a719570c7f..cfabc7151ef 100644
--- a/src/vpp-api/CMakeLists.txt
+++ b/src/vpp-api/CMakeLists.txt
@@ -15,14 +15,15 @@
# vpp api client library
##############################################################################
-add_library (vppapiclient SHARED
+add_vpp_library (vppapiclient
+ SOURCES
client/client.c
client/libvppapiclient.map
+
+ LINK_LIBRARIES vppinfra vlibmemoryclient svm pthread m rt
)
-target_link_libraries(vppapiclient vppinfra vlibmemoryclient svm pthread m rt)
add_dependencies(vppapiclient vpp_version_h api_headers)
-install(TARGETS vppapiclient DESTINATION lib)
-vpp_add_header_files(vpp-api
+add_vpp_headers(vpp-api
client/vppapiclient.h
)