#1535 CMake macro for copying files to build tree
Metadata
Property | Value |
---|---|
Reported by | Carsten Gräser (graeser@math.fu-berlin.de) |
Reported at | Nov 26, 2014 09:28 |
Type | Discussion |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
Last edited at | Feb 6, 2015 10:00 |
Closed by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
Closed at | Feb 6, 2015 10:00 |
Closed in version | Unknown |
Resolution | Implemented |
Comment | Merged in 7175e4f27d154e30e4ba9bb3bf70256821c20c19 |
Description
In dune-fufem we have a little macro that helps copying files to the build tree. It's best explained by example:
dune_fufem_add_copy_dependency(mytarget foo.bar)
This will introduce a new target for copying foo.bar to the build tree and make mytarget depend on it. This may also be helpful to others.
I did not find something like this in dune-common. Maybe someone more involved with the cmake build system can comment on if its a good idea to pull this into dune-common.