How to refer to the source directory in qmake?

后端 未结 5 1872
长发绾君心
长发绾君心 2020-12-30 10:57

I added

version.target = version.h
version.commands = bash generate-version.sh

QMAKE_EXTRA_TARGETS += version

PRE_TARGETDEPS += version.h
<
5条回答
  •  礼貌的吻别
    2020-12-30 11:26

    This works and is easy to understand.

    version.commands = ( cd $${PWD}; generate-version.sh )
    

提交回复
热议问题