linux 端口转发到外部:How to add pre-build step in qmake/qtcreator?
来源:百度文库 编辑:中财网 时间:2024/04/29 09:06:39
If you were to pass the version information as an included file (let's say "version.h") instead of a #define, then you could add the following to your qmake file
# Define how to create version.hversion.target = version.hversion.commands = version.depends = .gitQMAKE_EXTRA_TARGETS += versionPRE_TARGETDEPS += version.h
The first 3 lines tell how to make a new target object called "version" that generates "version.h". It is made by executing the commands "". The target is dependent on ".git"
The "QMAKE_EXTRA_TARGETS" says there is a new target known as "version".
The "PRE_TARGETDEPS" indicates that "version.h" needs to exist before anything else can be done (which forces it to be made if it isn't already made).
Help~~How to build a harmonious society?
cannot add icon to taskbar
国家正在提倡“节约型社会”以How to build an economized scoiety为主题写短文。
Failed to add Mux filter to graph!.
add to "windows.rar"
add up to 都有哪些意思
how to became to tall
how to reach to happy?
how to reach to happy?
How to to distinguish diamond??
how to be rich
how to use 酷狗
How to get satisfied?
how to protect environment
how to study English
how to happy?
how to 治疗失眠
how to meditate?
how to write article?
xunlei5 how to 下载
how to use 金山词霸?
How to conserve water?
how to cook chicken
HOW TO LEARN MONEY ?