aboutsummaryrefslogtreecommitdiff
path: root/test/test.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.qbs')
-rw-r--r--test/test.qbs38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/test.qbs b/test/test.qbs
new file mode 100644
index 0000000..3088a90
--- /dev/null
+++ b/test/test.qbs
@@ -0,0 +1,38 @@
+import qbs
+import qbs.Probes
+
+Project {
+ name: "Tests"
+
+ Probes.PkgConfigProbe {
+ id: libconfig
+ name: "libconfig++"
+ }
+
+ // References aren't needed because test.qbs is the last reference in smolbote.qbs
+// references: [
+// "../lib/settings/settings.qbs"
+// ]
+
+ CppApplication {
+ name: "configtest"
+
+ cpp.includePaths: ['../lib']
+ cpp.cxxLanguageVersion: "c++17"
+ cpp.cxxFlags: libconfig.cflags
+ cpp.linkerFlags: libconfig.libs
+
+ Depends {
+ name: "Qt"
+ versionAtLeast: "5.9.0"
+ submodules: ["core"]
+ }
+ Depends { name: "settings" }
+
+ files: [
+ "config/config.qrc",
+ "config/main.cpp",
+ ]
+
+ }
+}