cmake: Export cmake config for socket_wrapper_noop
authorAndreas Schneider <asn@samba.org>
Mon, 15 Mar 2021 07:18:15 +0000 (08:18 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 15 Mar 2021 07:18:15 +0000 (08:18 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/CMakeLists.txt

index 58829929abc4ca12a5d4eec5f83e367500c54088..3ea4a45e661540f607ff1fde6a947bddb89f9525 100644 (file)
@@ -53,11 +53,15 @@ if (DEFINED DEFAULT_LINK_FLAGS)
 endif()
 
 install(TARGETS socket_wrapper_noop
+        EXPORT socket_wrapper_noop-config
         RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
 )
 
+install(EXPORT socket_wrapper_noop-config
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/socket_wrapper)
+
 install(
     FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/socket_wrapper.h