diff --git a/tensorflow/contrib/cmake/tf_shared_lib.cmake b/tensorflow/contrib/cmake/tf_shared_lib.cmake
index 3e3fe0cdfae..d4099f32797 100644
--- a/tensorflow/contrib/cmake/tf_shared_lib.cmake
+++ b/tensorflow/contrib/cmake/tf_shared_lib.cmake
@@ -95,10 +95,18 @@ if(WIN32)
add_dependencies(tensorflow tensorflow_static)
endif(WIN32)
-install(TARGETS tensorflow
+target_include_directories(tensorflow PUBLIC
+ $
+ $)
+
+install(TARGETS tensorflow EXPORT tensorflow_export
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
+
+install(EXPORT tensorflow_export
+ FILE TensorflowConfig.cmake
+ DESTINATION lib/cmake)
# install necessary headers
# tensorflow headers