-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'setup-coverall-and-travis' into develop
- Loading branch information
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
# Load and compile GTest | ||
# Aliases: GTest::GTest, GTest::gtest_main, GMock::GMock | ||
|
||
if (GCOV AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")) | ||
set(GCOV_LIB gcov) | ||
endif() | ||
|
||
add_executable(logger_tests logger_tests.cpp) | ||
target_link_libraries(logger_tests GTest::GTest cpp-logger-static GTest::gtest_main) | ||
target_link_libraries(logger_tests GTest::GTest cpp-logger-static GTest::gtest_main ${GCOV_LIB}) | ||
|
||
add_executable(facility_tests facility_tests.cpp) | ||
target_link_libraries(facility_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main) | ||
target_link_libraries(facility_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main ${GCOV_LIB}) | ||
|
||
add_executable(exception_tests exception_tests.cpp) | ||
target_link_libraries(exception_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main) | ||
target_link_libraries(exception_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main ${GCOV_LIB}) | ||
|
||
add_executable(sink_tests sink_tests.cpp) | ||
target_link_libraries(sink_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main) | ||
target_link_libraries(sink_tests GTest::GTest GMock::GMock cpp-logger-static GTest::gtest_main ${GCOV_LIB}) | ||
|
||
add_executable(logger_performance_tests logger_performance_tests.cpp) | ||
target_link_libraries(logger_performance_tests GTest::GTest cpp-logger-static GTest::gtest_main) | ||
target_link_libraries(logger_performance_tests GTest::GTest cpp-logger-static GTest::gtest_main ${GCOV_LIB}) | ||
|
||
add_test(NAME logger_tests COMMAND logger_tests) | ||
add_test(NAME facility_tests COMMAND facility_tests) | ||
add_test(NAME exception_tests COMMAND facility_tests) | ||
add_test(NAME sink_tests COMMAND sink_tests) | ||
add_test(NAME sink_tests COMMAND sink_tests) |