[dune-pdelab] Reg.: multiple .cc files within the same duneproject

Shubhangi Gupta sgupta at geomar.de
Thu Sep 6 16:51:16 CEST 2018


Dear Oliver,

This worked! Thanks a lot! :)

Best wishes, Shubhangi


On 09/06/2018 04:43 PM, Oliver Sander wrote:
>> how can I make multiple targets in the release-build directory ?
> You list these targets in src/CMakeLists.txt
>
> Do have a look at CMakeLists.txt in dune-functions/examples
> (copied to the end of this mail for convenience).
> You will see that it sets up five executables.
> The same will work in your new project's src/CmakeLists.txt.
>
> Enjoy,
> Oliver
>
> add_executable("advection-reaction-dg" advection-reaction-dg.cc)
> target_link_dune_default_libraries("advection-reaction-dg")
>
> add_executable("interpolation" interpolation.cc)
> target_link_dune_default_libraries("interpolation")
>
> add_executable("poisson-pq2" poisson-pq2.cc)
> target_link_dune_default_libraries("poisson-pq2")
>
> if (dune-uggrid_FOUND)
> add_executable("stokes-taylorhood" stokes-taylorhood.cc)
> target_link_dune_default_libraries("stokes-taylorhood")
> endif ()
>
> add_executable("poisson-mfem" poisson-mfem.cc)
> target_link_dune_default_libraries("poisson-mfem")
>
>
>> Thanks again, and best wishes, Shubhangi
>>
>>
>> On 09/06/2018 03:42 PM, Oliver Sander wrote:
>>> Sure.  For an example, look at the 'examples' directory in the dun-functions module.
>>>
>>> Regards,
>>> Oliver
>>>
>>> On 06.09.2018 15:12, Shubhangi Gupta wrote:
>>>> Dear All,
>>>>
>>>> Is there a way to have multiple .cc files for different problems within the same dune project?
>>>>
>>>> Thanks in advance,
>>>> Best wishes, Shubhangi
>>>>

-- 
Dr. Shubhangi Gupta
Marine Geosystems
GEOMAR Helmholtz Center for Ocean Research
Wischhofstraße 1-3,
D-24148 Kiel

Room: 12-206
Phone: +49 431 600-1402
Email: sgupta at geomar.de





More information about the dune-pdelab mailing list