On 11/20/20 8:25 AM, Zachary 42! wrote:
I want to use some fortran modules in my test build of deal.II. What would be
the best way to create this structure? Maybe create a fortran directory in
source and create a obj_fortran OBJECT but I am not sure if the
DEAL_II_ADD_LIBRARY macro will work with .f90 files. This would require
ADD_SUBDIRECTORY(fortran) in source/CMakeLists.txt but I need to make sure this
fortran object is linked to other objects built from other directories in
source. For example, the obj_test built in source/tests/CMakeLists.txt needs
to be linked with this obj_fortran built from source/fortran/CMakeLists.txt.
Zachary,
are you interested in including Fortran90 parts into deal.II itself, or is
your goal simply to use Fortran90 in your (user-side) project? You will find
that trying to hook something into the deal.II build system description itself
is difficult, whereas user-side projects typically only have a couple of 100
lines of cmake scripts. That might be the easier approach.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/14ee8289-9c7d-d8ef-89a0-c73891134107%40colostate.edu.