QtCreator .Pro file's INCLUDEPATH vs HEADERS relative paths?
-
Hi,
Just a quick question. Is it necessary to specify the relative path in the HEADERS (and SOURCES for that matter) when the path is already specified in the INCLUDEPATH.
Could I do without specifying the relative paths in HEADERS and SOURCES but add VPATH with all the paths instead?What's the correct way? What is the actual difference?
Thanks
-
Hi,
Just a quick question. Is it necessary to specify the relative path in the HEADERS (and SOURCES for that matter) when the path is already specified in the INCLUDEPATH.
Could I do without specifying the relative paths in HEADERS and SOURCES but add VPATH with all the paths instead?What's the correct way? What is the actual difference?
Thanks
HEADERS and SOURCES has not much to do with the INCLUDEPATH
With HEADERS and SOURCES you define which headers and sources belong to your project. With INCLUDEPATH you define which (additional) include paths should be passed to the compiler.