summaryrefslogtreecommitdiff
path: root/gtest/CMakeLists.txt
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-05-26 11:10:59 +0800
committer彭宣正 <[email protected]>2021-06-16 11:06:25 +0800
commit678bb1c6f93c1bb72924d2bf5d29d500e24de465 (patch)
treececb92252afd7f47768c433317ab4726d6128f9c /gtest/CMakeLists.txt
parent4c9a8f89c4f64f1300d221b6eaefa68a34a0a5fe (diff)
TSG-6704 增加mock
Diffstat (limited to 'gtest/CMakeLists.txt')
-rw-r--r--gtest/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtest/CMakeLists.txt b/gtest/CMakeLists.txt
index 8cd3ab35..09cde228 100644
--- a/gtest/CMakeLists.txt
+++ b/gtest/CMakeLists.txt
@@ -6,9 +6,14 @@ include_directories("/opt/MESA/include")
link_directories("/opt/MESA/lib")
#link_libraries(hos-client-cpp gtest gtest_main pthread)
+# coverage
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
+SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
+
add_definitions(-g -W -Wall -std=c++11)
-#add_executable(gtest_hos_client gtest_hos_init_instance.cpp gtest_hos_get_instance.cpp)
-#add_executable(gtest_hos_client gtest_hos_write.cpp)
+#add_executable(gtest_hos_client gtest_hos_init_instance.cpp gtest_hos_get_instance.cpp gtest_hos_close_fd.cpp gtest_hos_open_fd.cpp)
+#add_executable(gtest_hos_client CheckHosClient.cpp gtest_hos_upload_buff.cpp)
add_executable(gtest_hos_client ${SRCS})
target_link_libraries(gtest_hos_client hos-client-cpp gtest gtest_main pthread)