<div dir="ltr">So, I've investigated this a bit more, and I see that adding a debug visualizer to a (simple test) project adds the following text to the vcxproj file:<div><br></div><div><div>  <ItemGroup></div><div>    <Natvis Include="..\..\..\..\..\..\..\LLVM\llvm\utils\llvm.natvis" /></div><div>  </ItemGroup></div></div><div><br></div><div>(This was an unrelated test project, hence the many path components)</div><div><br></div><div>...right after the main.cpp file:</div><div><br></div><div><div>  <ItemGroup></div><div>    <ClCompile Include="main.cpp" /></div><div>  </ItemGroup></div></div><div><br></div><div>...so that the vcxproj file looks like this:</div><div><br></div><div><div>  <ItemGroup></div><div>    <ClCompile Include="main.cpp" /></div><div>  </ItemGroup></div><div>  <ItemGroup></div><div>    <Natvis Include="..\..\..\..\..\..\..\LLVM\llvm\utils\llvm.natvis" /></div><div>  </ItemGroup></div><div><br></div></div><div>My question, then, is how can I get CMake to emit the "<Natvis Include=" element when generating the vcxproj files? Any CMake experts?</div><div><br></div><div>If CMake CANNOT yet do this, I'll just <a href="http://cmake.org/Bug">file a bug for it</a>.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="font-size:12.8000001907349px">Sincerely,</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Alexander Riccio</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">--</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">"Change the world or go home."</span><div style="font-size:12.8000001907349px"><a href="http://about.me/ariccio" target="_blank">about.me/ariccio</a></div><div style="font-size:12.8000001907349px"><a href="http://about.me/ariccio" target="_blank"><br></a></div><div style="font-size:12.8000001907349px">If left to my own devices, I will build more.</div><div style="font-size:12.8000001907349px">⁂</div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jan 4, 2016 at 8:01 PM, <Alexander G. Riccio> <span dir="ltr"><<a href="mailto:alexander@riccio.com" target="_blank">alexander@riccio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As of Visual Studio 2015, natvis files <a href="http://blogs.msdn.com/b/vcblog/archive/2015/09/28/debug-visualizers-in-visual-c-2015.aspx" target="_blank">can be included as part of individual projects</a>, a much better method than manually copying the file to an specific directory in %USERPROFILE%.<div><br></div><div>I think it should be included in one of the CMakeLists.txt files, does anybody know how I can add it?<br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">Sincerely,<br>Alexander Riccio<br>--<br>"Change the world or go home."<div><a href="http://about.me/ariccio" target="_blank">about.me/ariccio</a></div><div><a href="http://about.me/ariccio" target="_blank"><br></a></div><div>If left to my own devices, I will build more.</div><div>⁂<br></div></div></div></div></div></div></div>
</div></div>
</blockquote></div><br></div>