diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2015-01-07 09:23:52 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-01-07 13:48:15 +0100 |
commit | df2d99bf2b6317e6cf1ebf4422b6e93e20754751 (patch) | |
tree | 45e66e4460073031df8c08f2b518fd6d9b6b76f6 /examples/app-and-lib/lib/lib.qbs | |
parent | 8c25d47a3e07c939ea5da0ab65c797ba14b94e21 (diff) |
Improve the "app and lib" example.
Make it more realistic by giving the library a header file, so the
example can demonstrate how to export an include path.
Change-Id: I4b55af8b86ef4fa0cddc3f29cefc5054e82c88cf
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'examples/app-and-lib/lib/lib.qbs')
-rw-r--r-- | examples/app-and-lib/lib/lib.qbs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/app-and-lib/lib/lib.qbs b/examples/app-and-lib/lib/lib.qbs index 5c1b7c170..da03a8fe9 100644 --- a/examples/app-and-lib/lib/lib.qbs +++ b/examples/app-and-lib/lib/lib.qbs @@ -40,8 +40,16 @@ import qbs 1.0 Product { type: "staticlibrary" name: "app-and-lib-lib" - files: [ "lib.cpp" ] + files: [ + "lib.cpp", + "lib.h", + ] cpp.defines: ['CRUCIAL_DEFINE'] Depends { name: 'cpp' } + + Export { + Depends { name: "cpp" } + cpp.includePaths: [path] + } } |