Make poppler optional
[pykit.git] / pykit.pro
1 # CONFIG += no_poppler
2 TEMPLATE = app
3 TARGET = pykit
4 DEPENDPATH += .
5 INCLUDEPATH += .
6 QT += webkit network gui core
7
8 # boost_python
9 LIBS += -lboost_python
10
11 # python
12 QMAKE_CXXFLAGS += $$system(python-config --cflags)
13 QMAKE_CFFLAGS += $$system(python-config --cflags)
14 LIBS += $$system(python-config --ldflags)
15
16 # Input
17 HEADERS += MainWindow.hh \
18            Publisher.hh \
19            PythonPublisher.hh \
20            Viewer.hh
21 SOURCES += main.cc \
22            MainWindow.cc \
23            Publisher.cc \
24            PythonPublisher.cc \
25            Viewer.cc
26
27 # poppler
28 !no_poppler {
29     LIBS += -lpoppler-qt4 -lpoppler
30     HEADERS += PDFWidget.hh
31     SOURCES += PDFWidget.cc
32     DEFINES += POPPLER
33 }