PDA

View Full Version : None Qt library managed by pro file



MarekR22
16th February 2011, 10:35
Hi,

I have some small none qt project (plugin) which should be compile with other big Qt projects.
I wish that running qmake and make in main directory of all projects will build all projects including those which are not using qt at all.
How to achieve this?

I see two possible solutions:

for none qt project create a pro file, which will not add any qt libraries and other dependencies and will handle creation of make file for this project.
Is it possible?
Is it enough to create this kind of project file?

TEMPLATE = lib
TARGET = myPlugin
QT -= gui core

INCLUDEPATH += .\
other/paths
SOURCES += someSourceFile.c

Or maybe is it possible adding in parent project a custom make file.
In this case how to do it?

ktk
22nd February 2011, 22:39
CONFIG -= qt instead of QT -= gui core removes even more.