<div dir="ltr"><div><div><div>Maybe my answer was a bit hasty. I described ONE way to do it, for entire directories. If you want to add definitions to a single target or specific set of targets you normally use the set_property command. Each target has a COMPILE_DEFINITIONS property, which you can append your definition to. Like:<br><br></div>set_property(TARGET mytarget APPEND PROPERTY COMPILE_DEFINITIONS myflag)<br><br><br></div>See once again cmake --help-command set_property for complete options.<br><br></div>Dominic<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 26, 2014 at 10:12 AM, Dominic Kempf <span dir="ltr"><<a href="mailto:dominic.r.kempf@gmail.com" target="_blank">dominic.r.kempf@gmail.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"><div><div><div><div>Hey Aleksejs,<br><br></div>although you dont mention it, I guess you are asking for the CMake way to do it.<br></div>Adding compile definitions is done via add_definitions. For more info type<br><br></div>cmake --help-command add_definitions<br><br></div>Best,<br>Dominic</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 26, 2014 at 9:47 AM, Aleksejs Fomins <span dir="ltr"><<a href="mailto:aleksejs.fomins@lspr.ch" target="_blank">aleksejs.fomins@lspr.ch</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Dear Dune,<br>
<br>
Now when the tests are built out of source, I feel I should use the<br>
absolute path to mesh files for testing dune-curvilineargrid, same as it<br>
is done in dune-grid.<br>
<br>
I notice that in dune-grid it is done by using the variable<br>
<br>
DUNE_GRID_EXAMPLE_GRIDS_PATH<br>
<br>
However, I cannot find where this variable is defined using grep on<br>
dune-grid. Could you please teach me how to define such a variable?<br>
<br>
Regards,<br>
Aleksejs<br>
<br>
<br></div></div>_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org" target="_blank">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>