mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 03:52:48 -05:00
add gtest
This commit is contained in:
@@ -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
8
External/gtest.cmake
vendored
Normal 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)
|
||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user