title: Install tensorflow using cmake
body: <p>I have just build tensorflow using VS2017 without GPU support in relase configuration :</p>
  
  <pre><code>cd tensorflow
  cmake f:/lib/tensorflow/tensorflow/contrib/cmake -G"Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release ^
  -DSWIG_EXECUTABLE=f:/swigwin-3.0.12/swig.exe ^
  -DPYTHON_EXECUTABLE="C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" ^
  -DPYTHON_LIBRARIES="C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36.lib" ^
  -Dtensorflow_WIN_CPU_SIMD_OPTIONS=/arch:AVX ^
  -DCMAKE_INSTALL_PREFIX=g:/lib/install/tensorflow
  
  MSBuild /p:Configuration=Release tf_tutorials_example_trainer.vcxproj
  </code></pre>
  
  <p>Now using install project in VS solution If I select install project there is no error and I have got only 6 files copied :
   Répertoire de G:\Lib\install\tensorflow\bin</p>
  
  <blockquote>
  <pre><code>23/03/2018  15:43    &lt;DIR&gt;          .
  23/03/2018  15:43    &lt;DIR&gt;          ..
  23/03/2018  15:43        53 294 080 benchmark_model.exe
  23/03/2018  15:43        53 574 656 compare_graphs.exe
  23/03/2018  15:42        53 612 544 summarize_graph.exe
  23/03/2018  15:39        53 297 664 tf_label_image_example.exe
  23/03/2018  15:24        53 250 560 tf_tutorials_example_trainer.exe
  23/03/2018  15:41        53 607 936 transform_graph.exe
                 6 fichier(s)      320 637 440 octets
                 2 Rép(s)  198 113 046 528 octets libres
  </code></pre>
  </blockquote>
  
  <p>There is no libs, no include. If I want to build my own C++ project using cmake I don't know how to use this install folder (there is no file tensorflow.cmake)</p>
  
  <p>First question : Is my install regular ?</p>
  
  <p>If answer to first question is yes :  to build my own c++ project must i copy all parameters from  tf_label_image_example projects?</p>
  
  <p>Update my answer with @A. A comment : MSBuild /p:Configuration=RelWithDebInfo ALL_BUILD.vcxproj</p>
  
  <blockquote>
    <p>"F:\lib\build\tensorflow\ALL_BUILD.vcxproj" (cible par défaut) (1) ->
    "F:\lib\build\tensorflow_beam_search_ops.vcxproj" (cible par défaut)
    (2) -> "F:\lib\build\tensorflow\pywrap_tensorflow_internal.vcxproj"
    (cible par défaut) (3) ->
    "F:\lib\build\tensorflow\pywrap_tensorflow_internal_static.vcxproj"
    (cible par défaut) (4) ->
    "F:\lib\build\tensorflow\tf_core_kernels.vcxproj" (cible par défaut)
    (130) -> (ClCompile cible) -><br>
    f:\lib\tensorflow\tensorflow\core\kernels\training_ops.cc(1341): fatal
    error C1060: espace du tas insuffisant pour le compilateur
    [F:\lib\build\tensorflow\tf_core_kernels.vcxproj]</p>
  
  <pre><code>47 Avertissement(s)
  1 Erreur(s)
  </code></pre>
  </blockquote>
  
  <p>It's in french (my vs2017 is in english but it seems that 's not for console tools  : only one <a href="https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1060" rel="nofollow noreferrer">error c1060</a> :compiler is out of heap space.The operating system or run-time library cannot fill a request for memory.  </p>
  
  <p>If I run install (in vs solution)  only 6 exe files are copied :</p>
  
  <blockquote>
    <p>1>------ Build started: Project: INSTALL, Configuration: Release x64
    ------ 1>-- Install configuration: "Release" 1>-- Up-to-date: G:/Lib/install/tensorflow/bin/tf_tutorials_example_trainer.exe 1>--
    Up-to-date: G:/Lib/install/tensorflow/bin/tf_label_image_example.exe
    1>-- Up-to-date: G:/Lib/install/tensorflow/bin/transform_graph.exe
    1>-- Up-to-date: G:/Lib/install/tensorflow/bin/summarize_graph.exe
    1>-- Up-to-date: G:/Lib/install/tensorflow/bin/compare_graphs.exe 1>--
    Up-to-date: G:/Lib/install/tensorflow/bin/benchmark_model.exe
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========</p>
  </blockquote>
  
  <p>In relasewithdebug info nothing is copied but tf_core_kernel.lib is missing (error c1060)</p>
  
  <p>thanks for your(s) answer(s)</p>