-
Notifications
You must be signed in to change notification settings - Fork 0
/
m2_cmake_gcov_patch.diff
21 lines (19 loc) · 1001 Bytes
/
m2_cmake_gcov_patch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 473b737..f18d415 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,14 +127,14 @@ if (Qt5Widgets_FOUND AND Qt5Test_FOUND)
add_executable(notebook ${gui_main} ${gui_src})
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
- target_link_libraries(notebook interpreter Qt5::Widgets pthread)
+ target_link_libraries(notebook interpreter Qt5::Widgets pthread gcov)
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(notebook interpreter Qt5::Widgets)
endif()
add_executable(notebook_test ${gui_test_src} ${gui_src})
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
- target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread)
+ target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread gcov)
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test)
endif()