Yes, but i get and error
I want to join each .h and .cpp file for unit testing project which is a part of subdirs template project.error: multiple definition of `main'
But test project has own main function which is declared by means of command
QTEST_MAIN(myClass)
#include "myClass.moc"
I do not want to add each file separately
HEADERS += myclass.h \
myclass2.h \
itd
SOURCES += myclass.cpp \
myclass2.cpp \
itd \
So I try to find better solution.
Screenshot of project structure
subdirs project.jpg
Bookmarks