]> sigrok.org Git - pulseview.git/blob - sigrok-qt2.pro
Tidied about box supported table layout
[pulseview.git] / sigrok-qt2.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2012-05-10T21:19:20
4 #
5 #-------------------------------------------------
6
7 QT       += core gui
8
9 TARGET = sigrok-qt2
10 TEMPLATE = app
11
12 # The sigrok-qt version number. Define APP_VERSION macro for use in the code.
13 VERSION       = 0.1.0
14 DEFINES      += APP_VERSION=\\\"$$VERSION\\\"
15
16 SOURCES += main.cpp\
17         mainwindow.cpp \
18     about.cpp
19
20 HEADERS  += mainwindow.h \
21     about.h
22
23 FORMS    += mainwindow.ui \
24     about.ui
25
26 RESOURCES    += sigrok-qt2.qrc
27
28 # libsigrok and libsigrokdecode
29 # TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need.
30 win32 {
31         # On Windows/MinGW we need to use '--libs --static'.
32         # We also need to strip some stray '\n' characters here.
33         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \
34                           libsigrok | sed s/\n//g)
35         LIBS           += $$system(pkg-config --libs --static libsigrokdecode \
36                           libsigrok | sed s/\n//g)
37 } else {
38         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode)
39         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok)
40         LIBS           += $$system(pkg-config --libs libsigrokdecode)
41         LIBS           += $$system(pkg-config --libs libsigrok)
42 }