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()