EDIT:
Forget below. Just found http://qt-project.org/doc/qt-5.0/qtdoc/deployment.html Thread can be closed.
No, I don't mean "how to tell where to create binary". I mean "how to tell the binary application where is the library placed in relative position to the application binary" - in a portable way.
EDIT:
In other words:
Is there a way to define in qmake, that my "App1" should look for dynamically linked libraries in a subdirectory "./lib/"?
I want to be able to build on unix:
App/
lib/
libapp.so
app1
app2
App/
lib/
libapp.so
app1
app2
To copy to clipboard, switch view to plain text mode
and on windows
App\
lib\
app.dll
app1.exe
app2.exe
App\
lib\
app.dll
app1.exe
app2.exe
To copy to clipboard, switch view to plain text mode
by just defining "app" library to be a dynamically loaded library in app1 and app2 binary applications.
Bookmarks