c++ - Failure to find MyClass.cpp -


i have project, looks this:

structure:

myproject --- myproject.pro --- .qmake.conf --- src     --- src.pro     --- tmp         --- myclass.cpp         --- myclass.h 

myproject.pro

template = subdirs subdirs = src 

.qmake.conf

top_dir=$$pwd 

src.pro

...  includepath += "$$top_dir/src/tmp/"  sources += myclass.cpp  headers += myclass.h  ... 

now if try run qmake i'm getting warning failure find myclass.cpp. there way can tell qmake should *.cpp/h files?

i using qt 5.7 (which means dependpath won't work).

include paths (includepath) used include statements inside cpp/header file. those:

#include <someheader> 

for project file have specify relative path.

sources += tmp/myclass.cpp 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -