Add mac specific configuration
[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 mac {
16     # Qt is not available as univeral library and provides
17     # a correct -arch tag automatically
18     QMAKE_CXXFLAGS -= -arch ppc x86_64 i386
19     QMAKE_CFLAGS -= -arch ppc x86_64 i386
20 }
21
22 # Input
23 HEADERS += MainWindow.hh \
24            Publisher.hh \
25            PythonPublisher.hh \
26            Viewer.hh
27 SOURCES += main.cc \
28            MainWindow.cc \
29            Publisher.cc \
30            PythonPublisher.cc \
31            Viewer.cc
32
33 # poppler
34 !no_poppler {
35     LIBS += -lpoppler-qt4 -lpoppler
36     HEADERS += PDFWidget.hh
37     SOURCES += PDFWidget.cc
38     DEFINES += POPPLER
39 }