From bc03e250b9571e753c49b6f5c3c5ff70f90f4fb5 Mon Sep 17 00:00:00 2001 From: Jannik Zander <59698@grundfos.com> Date: Tue, 17 Jul 2018 11:02:11 +0200 Subject: [PATCH] Add gtest.wrap --- meson.build | 8 +++++++- subprojects/gtest.wrap | 10 ++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 subprojects/gtest.wrap diff --git a/meson.build b/meson.build index 1dc9707..5d2eae0 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,11 @@ project('meson_test','cpp', 'c') -gtest = dependency('gtest', main : true, required : false) + + +gtest_sub = subproject('gtest') +gtest = gtest_sub.get_variable('gtest_main_dep') + + +subproject('gtest') subdir('folder1') subdir('folder1_test') subdir('folder2') diff --git a/subprojects/gtest.wrap b/subprojects/gtest.wrap new file mode 100644 index 0000000..773a713 --- /dev/null +++ b/subprojects/gtest.wrap @@ -0,0 +1,10 @@ +[wrap-file] +directory = googletest-release-1.8.0 + +source_url = https://github.com/google/googletest/archive/release-1.8.0.zip +source_filename = gtest-1.8.0.zip +source_hash = f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf + +patch_url = https://wrapdb.mesonbuild.com/v1/projects/gtest/1.8.0/5/get_zip +patch_filename = gtest-1.8.0-5-wrap.zip +patch_hash = 7eeaede4aa2610a403313b74e04baf91ccfbaef03203d8f56312e22df1834ec5 -- 2.43.0