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:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/