How to run a Python script after building the project? qmake/CMake
-
wrote on 23 Feb 2022, 14:27 last edited by
I would like to run a Python scirpt for qmllint after building the project.
I foundQMAKE_POST_LINK
, but I don't really understand how it works and how to run a python script using it.
WhyQMAKE_POST_LINK = system(python myScript.py)
doesn't work? -
wrote on 24 Feb 2022, 03:32 last edited by Bonnie
qmake will add the value of
QMAKE_POST_LINK
directly to the Makefile, so you cannot use qmake functions but direct commands.
So I think it should be something likeQMAKE_POST_LINK = path/to/python path/to/myScript.py
1/2