Skip to content

Commit 9933a1a

Browse files
committed
Fix test discovery
1 parent cb08a5d commit 9933a1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ option(SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS "Build unit tests" ON)
1010
find_package(Qt6 6.6 COMPONENTS Quick QuickControls2 REQUIRED)
1111

1212
if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
13+
enable_testing()
1314
find_package(Qt6 6.6 COMPONENTS Test REQUIRED)
1415
endif()
1516

build/module_test.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
2121
)
2222

2323
target_include_directories(${TARGET} PRIVATE ${MODULE_SRC_DIR})
24+
gtest_discover_tests(${TARGET})
2425
endif()

0 commit comments

Comments
 (0)