This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Qt5 Code Compilation with gcov

Tags: None
(comma "," separated)
drebee
Registered Member
Posts
1
Karma
0

Qt5 Code Compilation with gcov

Sun Dec 02, 2018 8:54 pm
I'm working on test cases and I want to measure test coverage for my program. I've added a .pro file to assist with this, however when I go to run gcov with my file, I keep getting KoTriangleColorSelector.h:22:10 fatal error: QWidget: No such file or directory #include <QWidget> compilation terminated.

I've tried adding the path to the QWidget file as an INCLUDEDIR += feature, but it's still not working.

Does anyone have an example .pro file or can someone point me in the correct direction regarding how to get gcov to compile my code? I feel like I'm missing something small. I'm using qt5 so any help is appreciated.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]