Accessing qmake DESTDIR variable in code
-
Hi,
No there's not except the way you do it.
Why do you need that value in your code ?
Edit: you could generate a header file with the content of that variable but better understand your need before doing that.
-
We place all of our compiled libs and apps in our own custom dir, rather than having them spread across each individual lib/project folder.
We also have a plugin architecture, and plugins are placed in a plugins dir inside the above referenced dir.
These plugins are shared across a bunch of different apps. So when I load the plugins in our app code, I want to be able to find the plugins subdir to load from. Note that this is only for development. When generating Mac dmg bundles, we deal with pulling these plugins into the bundle.
Am I approaching this incorrectly?
-
@SGaist said in Accessing qmake DESTDIR variable in code:
Why do you need that value in your code ?
Esp. since it can be overwritten during make install...
-
In that case, you should rather structure your DESTDIR content to match more closely the final output when packaging your application.
That way, you don't have to do special handling in your code. Just in your project management.