Fixes: Automatically run configure script when needed.
[qtcontacts-tracker:hasselmms-contactsd.git] / contactsd.pro
1 TEMPLATE = subdirs
2 CONFIG += ordered
3 QT -= gui
4
5 SUBDIRS += src plugins tests
6
7 pkgconfig.path=$$LIBDIR/pkgconfig
8 pkgconfig.files=contactsd-1.0.pc
9
10 backupconf.path=$$PREFIX/share/backup-framework/applications/
11 backupconf.files=contactsd.conf
12
13 INSTALLS += pkgconfig backupconf
14
15 check.target = check
16 check.CONFIG = recursive
17 QMAKE_EXTRA_TARGETS += check
18
19 confclean.depends += distclean
20 confclean.commands += \
21     $(DEL_FILE) $$TOP_BUILDDIR/.qmake.cache \
22     $(DEL_FILE) $$TOP_BUILDDIR/contactsd-1.0.pc
23 QMAKE_EXTRA_TARGETS += confclean
24
25 OTHER_FILES += configure
26
27 # Run configure script when building the project from tools like QtCreator
28 isEmpty(CONFIGURED):system('$$PWD/configure')