[Dune] Using absolute path to a mesh file
Dominic Kempf
dominic.r.kempf at gmail.com
Wed Nov 26 10:19:26 CET 2014
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:
set_property(TARGET mytarget APPEND PROPERTY COMPILE_DEFINITIONS myflag)
See once again cmake --help-command set_property for complete options.
Dominic
On Wed, Nov 26, 2014 at 10:12 AM, Dominic Kempf <dominic.r.kempf at gmail.com>
wrote:
> Hey Aleksejs,
>
> although you dont mention it, I guess you are asking for the CMake way to
> do it.
> Adding compile definitions is done via add_definitions. For more info type
>
> cmake --help-command add_definitions
>
> Best,
> Dominic
>
> On Wed, Nov 26, 2014 at 9:47 AM, Aleksejs Fomins <aleksejs.fomins at lspr.ch>
> wrote:
>
>> Dear Dune,
>>
>> Now when the tests are built out of source, I feel I should use the
>> absolute path to mesh files for testing dune-curvilineargrid, same as it
>> is done in dune-grid.
>>
>> I notice that in dune-grid it is done by using the variable
>>
>> DUNE_GRID_EXAMPLE_GRIDS_PATH
>>
>> However, I cannot find where this variable is defined using grep on
>> dune-grid. Could you please teach me how to define such a variable?
>>
>> Regards,
>> Aleksejs
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/e1617a45/attachment.htm>
More information about the Dune
mailing list