cmake: improve add_vpp_plugin macro
[vpp.git] / src / plugins / tlsopenssl / CMakeLists.txt
index 7659cc0..fac27f5 100644 (file)
 # limitations under the License.
 
 if(OPENSSL_FOUND)
-  add_vpp_plugin(tlsopenssl_plugin tls_openssl.c tls_async.c)
-  target_link_libraries(tlsopenssl_plugin ${OPENSSL_LIBRARIES})
+  add_vpp_plugin(tlsopenssl
+    SOURCES
+    tls_openssl.c
+    tls_async.c
+
+    LINK_LIBRARIES
+    ${OPENSSL_LIBRARIES}
+  )
 endif()