Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Makefile HEADERS-entry starting with # - question [solved]
i tried defining the headers-entry like this:
@HEADERS += # GLOBALS
If the first line is a comment like this, qMake (tested only within qtCreator) removes the folder "header files" and gives an error :
<path to project>\src\src.pro:25: Error: Extra characters after test expression.
@HEADERS += globals/properties.h @
Is this a common issue or can be a bug?
HEADERS += # GLOBALS << you are missing a backslash after +=
i think i expected that the tokens will be parsed like in c/c++. Any spaces after the keyword should be ignored. But this is common i guess.
It's rather like the multiline string case, you need to tell the parser that there will be something following so it must continue to read
Ok, got it. Thanks.
You're welcome !
If that answers your questions, then please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Ok, done :)