diff options
Diffstat (limited to 'examples/app-and-lib/lib')
-rw-r--r-- | examples/app-and-lib/lib/lib.h | 6 | ||||
-rw-r--r-- | examples/app-and-lib/lib/lib.qbs | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/examples/app-and-lib/lib/lib.h b/examples/app-and-lib/lib/lib.h new file mode 100644 index 000000000..e6279fd33 --- /dev/null +++ b/examples/app-and-lib/lib/lib.h @@ -0,0 +1,6 @@ +#ifndef LIB_H +#define LIB_H + +int bla(); + +#endif // LIB_H 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] + } } |