summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..2d571dc
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,30 @@
+project(
+ 'libmodxml', 'cpp',
+ version : '0.1',
+ meson_version: '>= 0.58',
+ default_options : [
+ 'warning_level=3',
+ 'cpp_std=c++17',
+ 'cpp_rtti=false',
+ 'cpp_eh=none',
+ 'b_ndebug=if-release',
+ ],
+)
+
+gtest_dep = dependency(
+ 'gtest',
+ version: '>= 1.10.0',
+ main: true,
+ fallback: ['gtest', 'gtest_main_dep'])
+
+gmock_dep = dependency(
+ 'gmock',
+ version: '>= 1.10.0',
+ main: false,
+ fallback: ['gtest', 'gmock_dep'])
+
+subdir('base')
+subdir('utf')
+subdir('sax')
+
+run_target('iwyu', command: 'scripts/iwyu.sh')