Unsolved qtcreator: includes not displayed
-
Hi,
I have a subproject setup as follows:
toplevel (template=subdirs)
|__lib (project folder) with the sources of the library
|__app (project folder) with the source for the app, using the lib
|__include/libIncludes (usual directories) holding the includes of the libIn the lib.pro, I have:
INCLUDEPATH += ../../include/libIncludes/ SOURCES += \ some.cpp HEADERS += \ some.h \
Everything compiles fine.
However, in qtcreator I don't see the include files as usual if they reside inside / below the .pro file.
I'm following the llvm specific directory setup (with 'out of source-dir' includes location).
How can I get the include files visible in qtcreator projects navigation pane?Alex
-
Hi,
Are the files in
libIncludes
listed somewhere ? -
Hi,
what do you mean by listed in libIncludes?
They are listed in the pro file of the lib as HEADERS (example: some.h above).
I also tried to use the path ../../include/libIncludes/some.h explicitly, does not change anything.
Inside the libIncludes is no pro file...Did I answer your question; I'm not sure?
Alex -
You only see the headers for the project they are added to the
HEADERS
section in the pro file. So for you, they should already appear in the Project pane underlib
, which seems good for me.If you also want to see them under
app
, you should probably move the list of headers to alib.pri
file andinclude
that one fromlib.pro
andapp.pro
.Regards
-
@aha_1980
listed in HEADERS in the lib .pro is the case (as shown above), but they are not shown:
https://imgur.com/a/NGxGoqv
So whats wrong here?
(sorry for the image link, the image url as image did not work) -
@alexqt143
try it with that last / removed from the includepathINCLUDEPATH += ../../include/libIncludes/to
INCLUDEPATH += ../../include/libIncludes
Irrelevant post, the headers don't even seem to be inside
../../include/libIncludes
but rather in
../../include/dsesMasterLib
-
@alexqt143 you need to provide the full (relative or absolute) path the the files. Creator is not searching for them, it just takes the paths as given.
-
yes,
HEADERS+= ../../include/dsesMasterLib/some.hworks, thanks!; I thought I had tested this yesterday already.
-
@alexqt143 said in qtcreator: includes not displayed:
works, thanks!
Please don't forget to mark your post as solved! Thanks.