diff options
author | Guillaume Jacquenot <guillaume.jacquenot@gmail.com> | 2017-02-21 21:22:25 +0100 |
---|---|---|
committer | Guillaume Jacquenot <guillaume.jacquenot@gmail.com> | 2017-02-21 21:22:25 +0100 |
commit | 52b6f36bd622845656d766ba54acd30b8de582fe (patch) | |
tree | 985c03c5d8be21ef61f09fcc135a28f129cdad5c /SRC | |
parent | f7f9d972a73593fac5daaa7c7c942762ee54548b (diff) | |
download | lapack-52b6f36bd622845656d766ba54acd30b8de582fe.tar.gz lapack-52b6f36bd622845656d766ba54acd30b8de582fe.tar.bz2 lapack-52b6f36bd622845656d766ba54acd30b8de582fe.zip |
[coverage] Added CMake rules for code coverage
Diffstat (limited to 'SRC')
-rw-r--r-- | SRC/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt index 099c5f48..07008bae 100644 --- a/SRC/CMakeLists.txt +++ b/SRC/CMakeLists.txt @@ -498,4 +498,9 @@ if(USE_XBLAS) endif() target_link_libraries(lapack PRIVATE ${BLAS_LIBRARIES}) +if (${CMAKE_BUILD_TYPE_UPPER} STREQUAL "COVERAGE") + target_link_libraries(lapack PRIVATE gcov) + add_coverage(lapack) +endif() + lapack_install_library(lapack) |