Build a project without QT libs and include
-
I am building a dll (with qt) that I would like to test from a MSVC project without qt.
So I would like to generate the .vcproj with qmake, but this vcproj should not contains qt includes and libs.
I added
@QT -= gui core@
But I still have reference to qt in my project. Is it possible to do this?
Thanks a lot -
Why don't you just create a VS project, if you don't want it to contain Qt?
-
As qmake is Qt's build tool, it will always add Qt's include and library paths to the project. Though, if you remove gui and core from the QT variable, it will not link against any Qt libs.
-
[quote author="Gerolf" date="1303817141"]Why don't you just create a VS project, if you don't want it to contain Qt?[/quote]
Because I like using qt tools for everything :p -
[quote author="neFAST" date="1303818039"][quote author="Gerolf" date="1303817141"]Why don't you just create a VS project, if you don't want it to contain Qt?[/quote]
Because I like using qt tools for everything :p[/quote]
Then stay with QtCreator :-)
-
I can't use QtCreator since I have to test if a developer using msvc can use my dll :p
-
so you have a dll which uses Qt internally but not in it's interface?
And this dll should be used by a MSVS user?If you use the MSVS toolchain, it is possible, but using QtCreator with mingw and MSVC for the client will not work.
If the test says, the client uses MSVS, I would also only use MSVS for that.
-
Qt Creator does fully support MSVC. That is no reason not to use it:-)
-
It supports the MS c++ tool chain (like cl, link, nmake, ...) :-)
MSVS is the IDE itself :-)If he does not beleive, he should test it, but then also create the project like the users would do, mith MSVS :-)