waynew
23rd May 2010, 15:16
I'm deploying an application to Windows with a statically linked library.
On the development machine, the pro file has:
INCLUDEPATH += C:\cpp\qt_projects\hrlogger\release\qserialdevice\ src
LIBS += -L"C:\cpp\qt_projects\hrlogger\release\qserialdevice\ src\release"
LIBS += -lqserialdevice
Which works ok, but obviously this won't work on the deployment since the directories will be different. So the question is, how to specify the library directory in the pro file so it is portable?
On the development machine, the pro file has:
INCLUDEPATH += C:\cpp\qt_projects\hrlogger\release\qserialdevice\ src
LIBS += -L"C:\cpp\qt_projects\hrlogger\release\qserialdevice\ src\release"
LIBS += -lqserialdevice
Which works ok, but obviously this won't work on the deployment since the directories will be different. So the question is, how to specify the library directory in the pro file so it is portable?