ecbuild_add_resources¶
Add resources as project files but optionally exclude them from packaging.
ecbuild_add_resources( TARGET <name>
[ SOURCES <source1> [<source2> ...] ]
[ SOURCES_PACK <source1> [<source2> ...] ]
[ SOURCES_DONT_PACK <source1> [<source2> ...] ]
[ PACK <file1> [<file2> ...] ]
[ DONT_PACK <file1> [<file2> ...] ]
[ DONT_PACK_DIRS <directory1> [<directory2> ...] ]
[ DONT_PACK_REGEX <regex1> [<regex2> ...] ] )
Options¶
- TARGETrequired
target name (target will only be created if there are any sources)
- SOURCESoptional, alias for SOURCES_PACK
list of source files included when packaging
- SOURCES_PACKoptional, alias for SOURCES
list of source files included when packaging
- SOURCES_DONT_PACKoptional
list of source files excluded when packaging
- PACKoptional, priority over DONT_PACK, DONT_PACK_DIRS, DONT_PACK_REGEX
list of files to include when packaging
- DONT_PACKoptional
list of files to exclude when packaging
- DONT_PACK_DIRSoptional
list of directories to exclude when packaging
- DONT_PACK_REGEXoptional
list of regular expressions to match files and directories to exclude when packaging
Note¶
All file and directory names are also partially matched. To ensure that
only the exact file or directory name is matched at the end of the path add
a $
at the end and quote the name.