c++ - Change TARGET compile name for QT application -
in qt-creator project, in .pro file set exe name
target=dashboard
however in same .pro file define
defines += demo_version
i uncomment line in order compile demo version of application. want know is, how can change target name of application contain name demo when demo version being compiled?
target=dashboard_demo
pseudo code
#ifndef demo_version target=dashboard_demo #else target=dashboard
according documentation qmake
here, adding following .pro file should work:
config += demo ... demo { defines += demo_version target=dashboard } else { target=dashboard_demo }
i added value demo
config
variable, , used define both defines
, target
.
Comments
Post a Comment