File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ option(SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS "Build unit tests" ON)
1010find_package (Qt6 6.6 COMPONENTS Quick QuickControls2 REQUIRED)
1111
1212if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
13+ set (GTEST_DIR thirdparty/googletest)
14+ add_subdirectory (${PROJECT_SOURCE_DIR} /${GTEST_DIR} ${CMAKE_CURRENT_BINARY_DIR} /${GTEST_DIR} )
1315 enable_testing ()
1416 find_package (Qt6 6.6 COMPONENTS Test REQUIRED)
1517endif ()
Original file line number Diff line number Diff line change 11if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
22 set (TARGET ${MODULE} _test)
33 set (TEST_MAIN_SRC ${PROJECT_SOURCE_DIR} /test /main.cpp)
4- set (GTEST_DIR thirdparty/googletest)
5- add_subdirectory (${PROJECT_SOURCE_DIR} /${GTEST_DIR} ${CMAKE_CURRENT_BINARY_DIR} /${GTEST_DIR} )
64
75 include (GoogleTest)
86
You can’t perform that action at this time.
0 commit comments