diff --git a/CMakeLists.txt b/CMakeLists.txt index e4318de..d07f29a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,10 +5,11 @@ set(CMAKE_CXX_STANDARD 17) include(FetchContent) -include(External/glfw.cmake) -include(External/imgui.cmake) include(External/eigen.cmake) include(External/glad.cmake) +include(External/glfw.cmake) +include(External/gtest.cmake) +include(External/imgui.cmake) include(External/json.cmake) include_directories(include) diff --git a/External/gtest.cmake b/External/gtest.cmake new file mode 100644 index 0000000..8071927 --- /dev/null +++ b/External/gtest.cmake @@ -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) diff --git a/tc/test/test_solve.cpp b/tc/test/test_solve.cpp index b6a6f2d..187da0e 100644 --- a/tc/test/test_solve.cpp +++ b/tc/test/test_solve.cpp @@ -5,10 +5,6 @@ #include #include -#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[]) { std::string key = argv[1];