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')
--- /dev/null
+[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