From 3f857bb284d3c8aa99bcd61980e0f0cab2dd8e19 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 7 Mar 2024 23:59:51 +0100 Subject: Added gtest to the project and a stub test for showcase --- contrib/CMakeLists.txt | 3 ++- contrib/gtest/CMakeLists.txt | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 contrib/gtest/CMakeLists.txt (limited to 'contrib') diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 520ca73..2f35927 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -1,11 +1,12 @@ include(ApplyPatch) include(FetchContent) include(MakeAvailable) +add_subdirectory(gtest) add_subdirectory(libpng) add_subdirectory(ogg) add_subdirectory(vorbis) add_subdirectory(zlib) -make_available(libpng ogg vorbis zlib) +make_available(gtest libpng ogg vorbis zlib) add_subdirectory(Opcode) add_subdirectory(sha1) install( diff --git a/contrib/gtest/CMakeLists.txt b/contrib/gtest/CMakeLists.txt new file mode 100644 index 0000000..657bacc --- /dev/null +++ b/contrib/gtest/CMakeLists.txt @@ -0,0 +1,7 @@ +set(BUILD_GMOCK OFF CACHE INTERNAL "") +set(INSTALL_GTEST OFF CACHE INTERNAL "") +FetchContent_Declare( + GTest + URL https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz + URL_HASH SHA1=bfa4b5131b6eaac06962c251742c96aab3f7aa78 + DOWNLOAD_EXTRACT_TIMESTAMP No) -- cgit v1.1