1
# Copyright 2010-2011 Free Software Foundation, Inc.
3
# This file is part of GNU Radio
5
# GNU Radio is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3, or (at your option)
10
# GNU Radio is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with GNU Radio; see the file COPYING. If not, write to
17
# the Free Software Foundation, Inc., 51 Franklin Street,
18
# Boston, MA 02110-1301, USA.
20
########################################################################
21
# Setup the QT file generations stuff
22
########################################################################
26
FrequencyDisplayPlot.h
27
TimeDomainDisplayPlot.h
28
WaterfallDisplayPlot.h
29
ConstellationDisplayPlot.h
31
QT4_WRAP_CPP(qtgui_moc_srcs ${qtgui_moc_hdrs})
32
QT4_WRAP_UI(qtgui_ui_hdrs spectrumdisplayform.ui)
34
#FIXME the sources expect <foo>.ui.h, but the macros generate ui_foo.h
35
#avoid changing the sources by generating the header with the include
36
set(spectrum_ui_hdr ${CMAKE_CURRENT_BINARY_DIR}/spectrumdisplayform.ui.h)
37
if(NOT EXISTS ${spectrum_ui_hdr})
38
file(WRITE ${spectrum_ui_hdr} "#include <ui_spectrumdisplayform.h>\n")
39
endif(NOT EXISTS ${spectrum_ui_hdr})
44
FrequencyDisplayPlot.cc
45
TimeDomainDisplayPlot.cc
46
WaterfallDisplayPlot.cc
47
waterfallGlobalData.cc
48
ConstellationDisplayPlot.cc
49
spectrumdisplayform.cc
52
spectrumUpdateEvents.cc
61
########################################################################
62
# Setup the include and linker paths
63
########################################################################
65
${GNURADIO_CORE_INCLUDE_DIRS}
66
${GR_QTGUI_INCLUDE_DIRS}
69
include_directories(${Boost_INCLUDE_DIRS})
70
link_directories(${Boost_LIBRARY_DIRS})
72
include_directories(${QWT_INCLUDE_DIRS})
73
link_directories(${QWT_LIBRARY_DIRS})
75
include_directories(${PYTHON_INCLUDE_DIRS})
76
include_directories(${PYTHON_INCLUDE_PATH}) #deprecated for dirs (cmake 2.6)
78
########################################################################
80
########################################################################
81
list(APPEND qtgui_libs
88
add_definitions(-DQWT_DLL) #setup QWT library linkage
89
add_library(gnuradio-qtgui SHARED ${qtgui_srcs})
90
target_link_libraries(gnuradio-qtgui ${qtgui_libs})
91
GR_LIBRARY_FOO(gnuradio-qtgui RUNTIME_COMPONENT "qtgui_runtime" DEVEL_COMPONENT "qtgui_devel")
93
########################################################################
94
# Install the header files
95
########################################################################
97
FrequencyDisplayPlot.h
98
TimeDomainDisplayPlot.h
99
WaterfallDisplayPlot.h
100
waterfallGlobalData.h
101
ConstellationDisplayPlot.h
103
spectrumdisplayform.h
106
spectrumUpdateEvents.h
107
DESTINATION ${GR_INCLUDE_DIR}/gnuradio
108
COMPONENT "qtgui_devel"