hsa: custom proto vfts for vcl tests
[vpp.git] / src / plugins / hs_apps / CMakeLists.txt
index da86512..1f47482 100644 (file)
@@ -47,8 +47,6 @@ endif(VPP_BUILD_HS_SAPI_APPS)
 option(VPP_BUILD_VCL_TESTS "Build vcl tests." ON)
 if(VPP_BUILD_VCL_TESTS)
   foreach(test
-    vcl_test_server
-    vcl_test_client
     sock_test_server
     sock_test_client
   )
@@ -58,4 +56,17 @@ if(VPP_BUILD_VCL_TESTS)
       NO_INSTALL
     )
   endforeach()
+
+  foreach(test
+    vcl_test_server
+    vcl_test_client
+  )
+    add_vpp_executable(${test}
+      SOURCES
+      "vcl/${test}.c"
+      vcl/vcl_test_protos.c
+      LINK_LIBRARIES vppcom pthread
+      NO_INSTALL
+    )
+  endforeach()
 endif(VPP_BUILD_VCL_TESTS)