Makefile: Add CPP code coverage

This commit is contained in:
AbdealiJK
2016-12-02 00:28:17 +05:30
committed by Tianqi Chen
parent 1f2ad36bad
commit 006f9e0760
3 changed files with 20 additions and 2 deletions

View File

@@ -47,6 +47,11 @@ LIB_RABIT = librabit.a
# path to libjvm.so
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server
# whether to test with coverage measurement or not. (only used for `make cover`)
# measured with gcov and html report generated with lcov if it is installed.
# this disables optimization to ensure coverage information is correct
TEST_COVER = 1
# path to gtest library (only used when $BUILD_TEST=1)
# there should be an include path in $GTEST_PATH/include and library in $GTEST_PATH/lib
GTEST_PATH =