<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I don't know about the targets, but you can get all variables
currently defined for a directory by reading the VARIABLES
property, e.g.</p>
<p>get_property(_variables DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY
VARIABLES)</p>
<p>I use this to dump the variables into a file so I can see with
which variable settings my build directory was configured with.</p>
<p>With kind regards,<br>
Eric</p>
<div class="moz-cite-prefix">Am 20.09.19 um 14:49 schrieb Cornelis
Bockemühl:<br>
</div>
<blockquote type="cite"
cite="mid:6210-5d84cb00-c3-12967640@202256610">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Right now I am fighting my way through large amounts of CMake
code (actually working on a ParaView custom application with
many own plugins, views, domains, property widgets etc. etc.),
and it is sometimes really not easy not to lose track
completely! Sometimes I am happy to be back into complex C++
programming - because I see much more logic in the entire thing.
And it is of course no news that CMake code is not famous for
being easy to debug.<br>
<br>
Anyway, I am dreaming of some "simple" features that would
sometimes help a lot, and it is all about "dumping" some kind of
data. Actually this is for me often also the favorite way to
debug C++ code: just print out the values of variables, arrays,
etc. - e.g. if setting a breakpoint in the debugger is difficult
because you are interested only in the 928773th occurrence of a
certain piece of code (without even knowing that number...).<br>
<br>
Accordingly in CMake code I am working a lot with the message()
function - but within that code the problem is often that you do
not even know which variables would be available at all!<br>
<br>
Thus functions like would be really great to have:<br>
<br>
“give me a list of all currently known targets”<br>
“give me a list of all properties of a target”<br>
“give me a list of all currently defined variables”<br>
etc.<br>
<br>
What I do not know is: Are this things that already exist - in
which case I would be happy if somebody could tell me how to
find them! -, or are these functions rather "feature requests"?<br>
<br>
In fact I can hardly believe that I am the first with such kind
of dreams, so my hope is still that they already exist
somewhere...<br>
<br>
--<br>
Cornelis Bockemühl<br>
mail: <a class="moz-txt-link-abbreviated" href="mailto:cornelis@bockemuehl.ch">cornelis@bockemuehl.ch</a><br>
phone: +41 79 644 9943<br>
Basel, Switzerland<br>
<a href="https://cobo.bockemuehl.ch" moz-do-not-send="true">https://cobo.bockemuehl.ch</a><br>
<a href="https://cobo.bockemuehl.ch" moz-do-not-send="true"><img
src="cid:part2.B444BBE3.189A25C3@mvtec.com" type="image/png"
class="" width="346" height="54"></a></p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<div class="moz-signature">-- <br>
<div style="width:480px; text-align: left; font-family: Arial,
Helvetica, sans-serif;">
<p style="color: #062d64; font-size: 14px; text-align: left;
font-family: Arial, Helvetica, sans-serif;">
<b>Dr. Eric Dönges</b>
<br>
Senior Software Engineer
</p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;">MVTec Software
GmbH | Arnulfstr. 205 | 80634 Munich | Germany
<br>
<a style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;"
href="mailto:mustermann@mvtec.com">doenges@mvtec.com</a> |
Tel: +49 89 457 695-0 | <a style="font-size: 12px;
font-family: Arial, Helvetica, sans-serif; color: #062d64;"
href="http://www.mvtec.com">www.mvtec.com</a>
<br>
</p>
<p>
<span style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;">Find our privacy policy <a
style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;"
href="https://www.mvtec.com/imprint">here</a>.</span> </p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;"><img
src="https://mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/newsletter-icon.png"
valign="bottom" width="16" height="16"> <a style="font-size:
12px; font-family: Arial, Helvetica, sans-serif; color:
#062d64; font-weight: bold;"
href="https://www.mvtec.com/newsletter">Sign up</a> for our
MVTec Newsletter!</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;">Geschäftsführer:
Dr. Wolfgang Eckstein, Dr. Olaf Munkelt<br>
Amtsgericht München HRB 114695</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;"> </p>
<img
src="https://www.mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/mvtec-logo-line.png"
alt="MVTec Software GmbH Logo"></div>
</div>
</body>
</html>