Link all targets in a directory against Dune::Common
Summary
This is a follow-up MR about setting include-directories on the Dune::Common
target, !1355 (merged). It is related to several other MRs in the core modules, e.g., dune-istl!598 (merged), dune-geometry!257 (merged), dune-grid!763 (merged), dune-localfunctions!282 (merged). It tries to establish a cmake pattern for libraries: If you have a dedicated directory of tests in a dune module, all these tests typically should be linked against the library in that dune module. In order to inherit all compile flags and include directory, the test targets need to be linked against a dune target. This can be easily accomplished by linking all targets in a directory automatically against a common library, by using the link_libraries()
command in the top of that directory. This is less error-prone than linking all targets individually.
Merge request reports
Activity
added buildsystem label
requested review from @santiago.ospina
assigned to @simon.praetorius
added 4 commits
-
86feb0b1...5e0b9c2c - 3 commits from branch
master
- d4002ad5 - Link all targets in a directory against Dune::Common
-
86feb0b1...5e0b9c2c - 3 commits from branch
@simon.praetorius note that I just rebased this branch.
mentioned in commit dcf394af
mentioned in merge request !1263 (closed)
mentioned in merge request !1207 (merged)