|
|
|
|
@ -456,7 +456,10 @@ if(RUN_TESTS)
|
|
|
|
|
include(GoogleTest) |
|
|
|
|
find_package(GTest REQUIRED) |
|
|
|
|
include_directories(${GTEST_INCLUDE_DIRS}) |
|
|
|
|
add_definitions(-fprofile-arcs -ftest-coverage -DRUN_TESTS) |
|
|
|
|
add_definitions(-DRUN_TESTS) |
|
|
|
|
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") |
|
|
|
|
add_definitions(-fprofile-arcs -ftest-coverage) |
|
|
|
|
endif() |
|
|
|
|
target_link_libraries(${BIN_TARGET} PRIVATE -fprofile-arcs ${GTEST_LIBRARIES}) |
|
|
|
|
gtest_add_tests(${BIN_TARGET} "" AUTO) |
|
|
|
|
endif() |
|
|
|
|
|