From: Jannik Zander <59698@grundfos.com> Date: Tue, 17 Jul 2018 09:02:11 +0000 (+0200) Subject: Add gtest.wrap X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=bc03e250b9571e753c49b6f5c3c5ff70f90f4fb5;p=meson-test.git Add 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