We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb08a5d commit 9933a1aCopy full SHA for 9933a1a
CMakeLists.txt
@@ -10,6 +10,7 @@ option(SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS "Build unit tests" ON)
10
find_package(Qt6 6.6 COMPONENTS Quick QuickControls2 REQUIRED)
11
12
if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
13
+ enable_testing()
14
find_package(Qt6 6.6 COMPONENTS Test REQUIRED)
15
endif()
16
build/module_test.cmake
@@ -21,4 +21,5 @@ if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
21
)
22
23
target_include_directories(${TARGET} PRIVATE ${MODULE_SRC_DIR})
24
+ gtest_discover_tests(${TARGET})
25
0 commit comments