Last active
February 8, 2021 06:44
-
-
Save rowlo/5857129 to your computer and use it in GitHub Desktop.
Enableing lcov code coverage analysis in QtCreator project file.
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
QMAKE_CXXFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 | |
QMAKE_LFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 | |
LIBS += \ | |
-lgcov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--coverage does all the same as -fprofile-arcs and -ftest-coverage, so is preferred