~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to gr-qtgui/lib/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2010-2011 Free Software Foundation, Inc.
 
2
#
 
3
# This file is part of GNU Radio
 
4
#
 
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)
 
8
# any later version.
 
9
#
 
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.
 
14
#
 
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.
 
19
 
 
20
########################################################################
 
21
# Setup the QT file generations stuff
 
22
########################################################################
 
23
set(qtgui_moc_hdrs
 
24
    spectrumdisplayform.h
 
25
    timedisplayform.h
 
26
    FrequencyDisplayPlot.h
 
27
    TimeDomainDisplayPlot.h
 
28
    WaterfallDisplayPlot.h
 
29
    ConstellationDisplayPlot.h
 
30
)
 
31
QT4_WRAP_CPP(qtgui_moc_srcs ${qtgui_moc_hdrs})
 
32
QT4_WRAP_UI(qtgui_ui_hdrs spectrumdisplayform.ui)
 
33
 
 
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})
 
40
 
 
41
set(qtgui_srcs
 
42
    ${qtgui_moc_srcs}
 
43
    ${qtgui_ui_hdrs}
 
44
    FrequencyDisplayPlot.cc
 
45
    TimeDomainDisplayPlot.cc
 
46
    WaterfallDisplayPlot.cc
 
47
    waterfallGlobalData.cc
 
48
    ConstellationDisplayPlot.cc
 
49
    spectrumdisplayform.cc
 
50
    timedisplayform.cc
 
51
    SpectrumGUIClass.cc
 
52
    spectrumUpdateEvents.cc
 
53
    plot_waterfall.cc
 
54
    qtgui_sink_c.cc
 
55
    qtgui_sink_f.cc
 
56
    qtgui_time_sink_c.cc
 
57
    qtgui_time_sink_f.cc
 
58
    qtgui_util.cc
 
59
)
 
60
 
 
61
########################################################################
 
62
# Setup the include and linker paths
 
63
########################################################################
 
64
include_directories(
 
65
    ${GNURADIO_CORE_INCLUDE_DIRS}
 
66
    ${GR_QTGUI_INCLUDE_DIRS}
 
67
)
 
68
 
 
69
include_directories(${Boost_INCLUDE_DIRS})
 
70
link_directories(${Boost_LIBRARY_DIRS})
 
71
 
 
72
include_directories(${QWT_INCLUDE_DIRS})
 
73
link_directories(${QWT_LIBRARY_DIRS})
 
74
 
 
75
include_directories(${PYTHON_INCLUDE_DIRS})
 
76
include_directories(${PYTHON_INCLUDE_PATH}) #deprecated for dirs (cmake 2.6)
 
77
 
 
78
########################################################################
 
79
# Setup library
 
80
########################################################################
 
81
list(APPEND qtgui_libs
 
82
    gnuradio-core
 
83
    ${QT_LIBRARIES}
 
84
    ${QWT_LIBRARIES}
 
85
    ${PYTHON_LIBRARIES}
 
86
)
 
87
 
 
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")
 
92
 
 
93
########################################################################
 
94
# Install the header files
 
95
########################################################################
 
96
install(FILES
 
97
    FrequencyDisplayPlot.h
 
98
    TimeDomainDisplayPlot.h
 
99
    WaterfallDisplayPlot.h
 
100
    waterfallGlobalData.h
 
101
    ConstellationDisplayPlot.h
 
102
    plot_waterfall.h
 
103
    spectrumdisplayform.h
 
104
    timedisplayform.h
 
105
    SpectrumGUIClass.h
 
106
    spectrumUpdateEvents.h
 
107
    DESTINATION ${GR_INCLUDE_DIR}/gnuradio
 
108
    COMPONENT "qtgui_devel"
 
109
)