How to introduce my project to my unit test project in the c++ qt program

29 views Asked by At

I'm pretty new in programming. I have a small project that I want to add a unit test to it. I add a new auto test project as new subprojet to my main project but I don't know how should I introduce and include my classes of another source subproject to unit test. I added include sentence of one of my classes but I got some error:

enter image description here

I added

INCLUDEPATH += ../TraceFileSource
include( ../TraceFileSource/TraceFileSource.pro )

to TraceFileTest.pro but it still dosen't work. I review this answer Qt creator: c++: undefined reference to Class::Function but it dosen't clear for me.Is there an easy way to do this?

0

There are 0 answers