[Qt-creator] Change path to external DLLs for program execution
Daniel Teske
daniel.teske at digia.com
Wed Apr 16 15:09:07 CEST 2014
On Wednesday 16 Apr 2014 15:03:45 André Hartmann wrote:
> Hello,
>
> I have (Windows) projects that depends on external
> libraries.
>
> Whenever a new version of this lib is released,
> I have to compile and test the projects against
> the new version and sometimes switch back to the
> old version.
>
> Qmake already makes my life very easy, as I can
> switch between them by changing the CONFIG variable:
>
> # project.pro
>
> CONFIG += LIB_V1
> #CONFIG += LIB_V2
>
> LIB_V1 {
> INCLUDEPATH += "c:/lib_v1/include"
> QMAKE_LIBDIR += "c:/lib_v1/lib"
> }
>
> LIB_V2 {
> INCLUDEPATH += "c:/lib_v2/include"
> QMAKE_LIBDIR += "c:/lib_v2/lib"
> }
>
> Now my last problem is, that I need the corresponding
> DLLs from either c:/lib_v1/bin or c:/lib_v2/bin when
> executing my program from Qt Creator.
>
> Is there a way to achive this?
Use "LIBS +=-Lc:/lib_v2/lib" instead of QMAKE_LIBDIR and creator should
automatically add those diretories to the path.
daniel
More information about the Qt-creator
mailing list