Remove invalid C++ warning option (added by python-config)
[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_CXXFLAGS -= -Wstrict-prototypes
14 QMAKE_CFFLAGS += $$system(python-config --cflags)
15 LIBS += $$system(python-config --ldflags)
16 mac {
17     # Qt is not available as univeral library and provides
18     # a correct -arch tag automatically
19     QMAKE_CXXFLAGS -= -arch ppc x86_64 i386
20     QMAKE_CFLAGS -= -arch ppc x86_64 i386
21 }
22
23 # Input
24 HEADERS += MainWindow.hh \
25            Publisher.hh \
26            PythonPublisher.hh \
27            Viewer.hh
28 SOURCES += main.cc \
29            MainWindow.cc \
30            Publisher.cc \
31            PythonPublisher.cc \
32            Viewer.cc
33
34 # poppler
35 !no_poppler {
36     LIBS += -lpoppler-qt4 -lpoppler
37     HEADERS += PDFWidget.hh
38     SOURCES += PDFWidget.cc
39     DEFINES += POPPLER
40 }