Skip to content

Commit

Permalink
add tests to CTest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoulin committed Oct 1, 2024
1 parent 0615cd7 commit 8b39283
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_FILE:polyscope-test> backend=openGL3_glfw)
endif()

0 comments on commit 8b39283

Please sign in to comment.