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