aports/main/sipp/gtest.patch
2023-04-03 05:18:59 +02:00

16 lines
679 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ef0cf9..1c8329e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,9 +127,8 @@ target_compile_features(sipp PUBLIC cxx_auto_type cxx_range_for)
add_executable(sipp_unittest EXCLUDE_FROM_ALL
${all_SRCS}
"${PROJECT_SOURCE_DIR}/src/sipp_unittest.cpp"
- "${PROJECT_SOURCE_DIR}/gtest/googletest/src/gtest-all.cc"
- "${PROJECT_SOURCE_DIR}/gtest/googlemock/src/gmock-all.cc"
)
+target_link_libraries(sipp_unittest gtest gmock)
target_compile_features(sipp_unittest PUBLIC cxx_auto_type cxx_range_for)
target_compile_definitions(sipp_unittest PUBLIC "-DGTEST")
target_include_directories(sipp_unittest SYSTEM PUBLIC