diff options
author | Aki <please@ignore.pl> | 2024-03-07 23:59:51 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-03-07 23:59:51 +0100 |
commit | 3f857bb284d3c8aa99bcd61980e0f0cab2dd8e19 (patch) | |
tree | 4a2724f89ce213b1834d5550229243cccfad9fb3 /contrib | |
parent | 1ef05b8b227194ec32ae49f0eaf3e483ef35bb6b (diff) | |
download | starshatter-3f857bb284d3c8aa99bcd61980e0f0cab2dd8e19.zip starshatter-3f857bb284d3c8aa99bcd61980e0f0cab2dd8e19.tar.gz starshatter-3f857bb284d3c8aa99bcd61980e0f0cab2dd8e19.tar.bz2 |
Added gtest to the project and a stub test for showcase
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/CMakeLists.txt | 3 | ||||
-rw-r--r-- | contrib/gtest/CMakeLists.txt | 7 |
2 files changed, 9 insertions, 1 deletions
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) |