Skip to content

Commit bd09d44

Browse files
committed
Fix issue in coverage
1 parent 75bf9c4 commit bd09d44

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ set_target_properties (gmock_main PROPERTIES FOLDER "Tests")
5151
set (target_name yup_tests)
5252
set (target_version "1.0.0")
5353
set (target_console OFF)
54+
set (target_gtest_modules "")
5455
set (target_modules
5556
yup_core
5657
yup_audio_basics
@@ -61,12 +62,13 @@ set (target_modules
6162

6263
if (NOT YUP_PLATFORM_EMSCRIPTEN)
6364
list (APPEND target_modules
64-
yup_gui
65+
yup_gui)
66+
list (APPEND target_gtest_modules
6567
GTest::gtest
6668
GTest::gmock)
6769
else()
6870
set (target_console ON)
69-
list (APPEND target_modules
71+
list (APPEND target_gtest_modules
7072
GTest::gtest_main
7173
GTest::gmock_main)
7274
endif()
@@ -80,8 +82,7 @@ yup_standalone_app (
8082
YUP_USE_CURL=0
8183
MODULES
8284
${target_modules}
83-
GTest::gtest
84-
GTest::gmock)
85+
${target_gtest_modules})
8586

8687
# ==== Setup sources
8788
set (sources "")

0 commit comments

Comments
 (0)