Thank you for your answer. Unfortunately that is what I want avoid. I really need a method to obtain (of course if it is possible) the TARGET value.
Date: Sun, 16 Mar 2014 05:50:02 -0600 From: [email protected] To: [email protected]; [email protected] Subject: Re: [Interest] Obtaining TARGET value from .pro file before compiling On 3/16/2014 4:38 AM, gsmember gs wrote: Hello, I wanted to ask if it is possible to obtain the TARGET value for using in my application from the .pro file. All I have found are methods to get values from DEFINES, but I need the TARGET value. Please help me, thank you! Well, I'm not sure if this addresses specifically what you're after, but you can place the TARGET value into a DEFINE, and that will get passed to your build on the command line. So, in your *.pro file, you would add this somewhere after you have defined TARGET: DEFINES += TARGET=$$TARGET If your TARGET is, say, "MyProject", then you'll have "-DTARGET=MyProject" (or "TARGET=MyProject" listed in the PreprocessorDefinitions of your Visual Studio project) when your code is built.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
