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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -