]> sigrok.org Git - pulseview.git/blob - sigrok-qt2.pro
4741d7692f1792d809ffcec02aa26293370f8cec
[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
19 HEADERS  += mainwindow.h
20
21 FORMS    += mainwindow.ui
22
23 RESOURCES    += sigrok-qt2.qrc
24
25 # libsigrok and libsigrokdecode
26 # TODO: Check for the minimum versions of libsigrok/libsigrokdecode we need.
27 win32 {
28         # On Windows/MinGW we need to use '--libs --static'.
29         # We also need to strip some stray '\n' characters here.
30         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode \
31                           libsigrok | sed s/\n//g)
32         LIBS           += $$system(pkg-config --libs --static libsigrokdecode \
33                           libsigrok | sed s/\n//g)
34 } else {
35         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrokdecode)
36         QMAKE_CXXFLAGS += $$system(pkg-config --cflags libsigrok)
37         LIBS           += $$system(pkg-config --libs libsigrokdecode)
38         LIBS           += $$system(pkg-config --libs libsigrok)
39 }