<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=HU link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Kyle,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve never contributed to CMake before. I once wanted to enchance the makefile generators with batch-mode support and built CMake myself and walked through the code in debug mode to see what it does. I identified the entry point where I should’ve placed my code, but essential it would’ve require a major rewrite of the makefile generators to enable deferred makefile generation. Daunted by the amount of work, I figured it was not worth the effort. (It was primarily motivated by NMake.)</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ll try giving the file API a spin and see if I understand the code enough to be able to add new queries and extract tests from the internal representation. I was hoping to not have to touch CMake itself for this summer project, but it seems that’s the first step.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers,</p><p class=MsoNormal>Máté</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Feladó: </b><a href="mailto:kyle.edwards@kitware.com">Kyle Edwards</a><br><b>Elküldve: </b>2019. július 8., hétfő 15:56<br><b>Címzett: </b><a href="mailto:csiga.biga@aol.com">Nagy-Egri Máté Ferenc</a>; <a href="mailto:cmake-developers@cmake.org">CMake fejlesztők</a><br><b>Tárgy: </b>Re: [cmake-developers] cmake-file-api and CTest</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On Sun, 2019-07-07 at 09:04 +0000, Nagy-Egri Máté Ferenc via cmake-</p><p class=MsoNormal>developers wrote:</p><p class=MsoNormal>> Hi!</p><p class=MsoNormal>> </p><p class=MsoNormal>> I am trying to cook a CTest back-end to the Test Explorer UI</p><p class=MsoNormal>> extension for VS Code as a summer project and I thought of using the</p><p class=MsoNormal>> new cmake-file-api for it. The docs however are understandably scarce</p><p class=MsoNormal>> and I could not muster how to obtain tests and not targets. Is it</p><p class=MsoNormal>> possible with this initial API design? If not, is my best bet to</p><p class=MsoNormal>> invoke CTest and parse the console output?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>FileAPI does not currently list CTest tests, though I agree that this</p><p class=MsoNormal>would be a good thing to have, perhaps for 3.16. Is this something</p><p class=MsoNormal>you'd be willing to help with?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kyle</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>