Skip to content

Commit

Permalink
Fix catch_discover_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed Jun 3, 2024
1 parent 2441022 commit 7c4e7dc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/app/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ endif()

target_compile_definitions(vtx_app_test PRIVATE VTX_RENDERER_NO_OPENGL)

set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_app_test)
vtx_copy_registered_data(vtx_app_test)
1 change: 1 addition & 0 deletions lib/io/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ endif()
vtx_copy_registered_data(vtx_io_test)
include(CTest)
include(Catch)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_io_test)

1 change: 1 addition & 0 deletions lib/python_binding/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ vtx_copy_registered_data(vtx_python_binding_test)

include(CTest)
include(Catch)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_python_binding_test)
1 change: 1 addition & 0 deletions lib/renderer/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ endif()
target_compile_definitions(vtx_renderer_test PRIVATE VTX_RENDERER_NO_OPENGL)

vtx_copy_registered_data(vtx_renderer_test)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_renderer_test)
1 change: 1 addition & 0 deletions lib/tool/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ target_compile_definitions(vtx_tool_test PRIVATE VTX_RENDERER_NO_OPENGL)

include(CTest)
include(Catch)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_tool_test)

install(TARGETS vtx_tool_test)
1 change: 1 addition & 0 deletions lib/tool/tools/mdprep/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ target_include_directories(vtx_tool_mdprep_test PRIVATE ${CMAKE_CURRENT_LIST_DIR

include(CTest)
include(Catch)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_tool_mdprep_test)
vtx_register_build_directory_copy("${CMAKE_CURRENT_LIST_DIR}/../data" "data")

Expand Down
1 change: 1 addition & 0 deletions lib/ui/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ vtx_copy_registered_data(vtx_ui_test)

include(CTest)
include(Catch)
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_ui_test)
1 change: 1 addition & 0 deletions lib/util/test/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ endif()
target_link_libraries(vtx_util_test PRIVATE Catch2::Catch2WithMain)
target_link_libraries(vtx_util_test PRIVATE nlohmann_json::nlohmann_json)

set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
catch_discover_tests(vtx_util_test)
vtx_copy_registered_data(vtx_util_test)

0 comments on commit 7c4e7dc

Please sign in to comment.