I have this tiny Qt project with a project file like this:
TEMPLATE = lib
TARGET = record32
VERSION = 0.0.1
DEPENDPATH += .
INCLUDEPATH += .
CONFIG += shared
SOURCES += recorder.cpp
HEADERS += recorder.h
When I compile a library from it by qmake && nmake
, it results into files
record32.obj
record320.lib
record320.dll
...
Why is that additional 0 added to the lib and dll names?
The generated makefiles seem not be appending it but rather just assume it, in Makefile.Release
it just says:
####### Files
SOURCES = recorder.cpp release\moc_recorder.cpp
OBJECTS = release\recorder.obj release\moc_recorder.obj
DIST =
QMAKE_TARGET = recorder
DESTDIR = release\ #avoid trailing-slash linebreak
TARGET = record320.dll
DESTDIR_TARGET = release\record320.dll
How can I prevent it and name my libraries as I wish?
(Note that manually fix the makefile.release isn't a accetable solution)