View Full Version : pass qmake arguments to sudir project
bibhukalyana
10th February 2017, 09:54
Hi,
I have a subdir project. I want to pass a prefix path from qmake argument list to all subdir projects.
can any one tell me how to do this ?
Thanks.
anda_skoa
11th February 2017, 09:43
Isn't that done automatically?
What is the value you get for $$(PREFIX) in the project files inside the subdirs?
Cheers,
_
bibhukalyana
12th February 2017, 01:26
Thanks for reply,
It is working.
What I was tying :
parent .pro
isEmpty(PREFIX) {
PREFIX = default-path-to-dest
}
message($$PREFIX) // it will print default-path-to-dest
child .pro
message($$PREFIX) //it will print empty string
and under qmake arguments I was passing nothing. I thought parent.pro will check for PREFIX value and if it is empty then it will assign some default value.
Thanks for your help. :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.