add gtest

This commit is contained in:
David Allemang
2022-09-15 11:13:43 -04:00
parent e513572389
commit cdd0e628e1
3 changed files with 11 additions and 6 deletions

View File

@@ -5,10 +5,11 @@ set(CMAKE_CXX_STANDARD 17)
include(FetchContent) include(FetchContent)
include(External/glfw.cmake)
include(External/imgui.cmake)
include(External/eigen.cmake) include(External/eigen.cmake)
include(External/glad.cmake) include(External/glad.cmake)
include(External/glfw.cmake)
include(External/gtest.cmake)
include(External/imgui.cmake)
include(External/json.cmake) include(External/json.cmake)
include_directories(include) include_directories(include)

8
External/gtest.cmake vendored Normal file
View File

@@ -0,0 +1,8 @@
FetchContent_Declare(
gtest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.12.1
GIT_PROGRESS TRUE
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(gtest)

View File

@@ -5,10 +5,6 @@
#include <tc/groups.hpp> #include <tc/groups.hpp>
#include <tc/core.hpp> #include <tc/core.hpp>
#define UNWRAP(...) {__VA_ARGS__}
#define CASE(GROUP, SUBGROUP, EXPECT) {#GROUP " / " #SUBGROUP, UNWRAP SUBGROUP, SUBGROUP, EXPECT}
//#define CASE(GROUP, SUBGROUP, EXPECT) {#GROUP " / " #SUBGROUP, tc::group::GROUP, SUBGROUP, EXPECT}
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
std::string key = argv[1]; std::string key = argv[1];