From 8b392834f52fa0776ec9880ae021a8fd2871ce84 Mon Sep 17 00:00:00 2001 From: Giorge Koulin Date: Tue, 1 Oct 2024 08:05:06 +0100 Subject: [PATCH] add tests to CTest configuration --- test/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c6b24484..ee9c650e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -122,3 +122,10 @@ add_subdirectory(../ "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") # Catch the usage of obsolete functions in imgui target_compile_definitions(imgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS) + +if(SPLIT_TESTS) + include(GoogleTest) + gtest_discover_tests(polyscope-test EXTRA_ARGS backend=openGL3_glfw) +else() + add_test(NAME polyscope-test COMMAND $ backend=openGL3_glfw) +endif()