Documentation, FAQ.md, generated_headers [skip ci]

This commit is contained in:
laolux 2020-06-16 05:31:55 +09:00 committed by GitHub
parent 0b9e8e39dd
commit 0a583ac06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ sources in the build target:
libfoo_gen_headers = custom_target('gen-headers', ..., output: 'foo-gen.h')
libfoo_sources = files('foo-utils.c', 'foo-lib.c')
# Add generated headers to the list of sources for the build target
libfoo = library('foo', sources: libfoo_sources + libfoo_gen_headers)
libfoo = library('foo', sources: [libfoo_sources + libfoo_gen_headers])
```
Now let's say you have a new target that links to `libfoo`: