Make qmake not deploy .pdb files
-
Hello,
Question about qmake target and INSTALLS variables. I have a library project and the .pro file contains:
QT -= core gui TARGET = testlib TEMPLATE = lib CONFIG += shared SOURCES += \ Testlib.cpp HEADERS += \ Testlib.h target.path = /Test INSTALLS += targetWhen I run "nmake install", it deploys .lib, .dll and .pdb files. I would like to build with debug info but deploy without debug info. How would I tell INSTALLS not to deploy .pdb files?
-
QT -= core gui TARGET = testlib TEMPLATE = lib CONFIG += shared debug_and_release SOURCES += \ Testlib.cpp HEADERS += \ Testlib.h CONFIG(release, debug|release) { target.path = /Test INSTALLS += target }P.S.
testlibis already the name of a Qt module. To avoid name confusion, consider changing your target name -
Thanks but this is not exactly what I'm looking for. I'm building in Release mode and have checked the "Generate separate debug info" under Qt Creator Projects (which adds "CONFIG+=force_debug_info" "CONFIG+=separate_debug_info").
I would like to build a Release mode dll with debug info (pdb will be used to analyze minidumps in case of crashes). I just don't want to deploy the pdb file with "nmake install", this would make my build script easier.