How to make a relative path for header files
-
I am able to use the "QMAKE_POST_LINK = copy address\goes\here.h and\pastes\here.h" but want to take the original address as a relative path. I tired something like this...
HEADERS += -L"$$PWD/header.h" -header.h
QMAKE_POST_LINK = copy -H"$$PWD\header.h" -header.h C:\really\long\address\goes\here\header.h;
this didn't work, so I tried something like this from a library relative path example I found earlier like so...
QMAKE_POST_LINK = copy -L"..\header.h" -header.h C:\really\long\address\goes\here\header.h;
Does anyone know how to copy a header file using a relative path approach? Or is it simply impossible?
-
welcome to the forum.
Can you try checking on INCLUDEPATH directive ?