Unsolved How to use QMAKE to execute wildcard clean targets?
-
I want to do something like this, QMAKE_CLEAN += QMAKE_DEL_DIR($(MOC_DIR)) /S /Q, so that it cleans up all the files on Windows so that it generates it in the .vcxproj file. In this case MOC_DIR maps to the ../temp directory. It is tricky getting this to work & the answer likely is a semantic error. TIA. BTW, I am using Qt 5.15.
-
Try good old message debugging ;-)
QMAKE_CLEAN += QMAKE_DEL_DIR($(MOC_DIR)) /S /Q message($${QMAKE_CLEAN})
the answer likely is a semantic error.
Yeah, qmake is very sensitive to those. Things to try:
- use double dollar sign and curly brackets
QMAKE_DEL_DIR($${MOC_DIR}) /S /Q
- escape slashes
- use double dollar sign and curly brackets