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

« back to all changes in this revision

Viewing changes to gr-noaa/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 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 include and linker paths
 
22
########################################################################
 
23
include_directories(
 
24
    ${GNURADIO_CORE_INCLUDE_DIRS}
 
25
    ${GR_NOAA_INCLUDE_DIRS}
 
26
)
 
27
 
 
28
include_directories(${Boost_INCLUDE_DIRS})
 
29
link_directories(${Boost_LIBRARY_DIRS})
 
30
 
 
31
########################################################################
 
32
# Setup library
 
33
########################################################################
 
34
list(APPEND gr_noaa_sources
 
35
    noaa_hrpt_decoder.cc
 
36
    noaa_hrpt_deframer.cc
 
37
    noaa_hrpt_pll_cf.cc
 
38
)
 
39
 
 
40
list(APPEND noaa_libs
 
41
    gnuradio-core
 
42
    ${Boost_LIBRARIES}
 
43
)
 
44
 
 
45
add_library(gnuradio-noaa SHARED ${gr_noaa_sources})
 
46
target_link_libraries(gnuradio-noaa ${noaa_libs})
 
47
GR_LIBRARY_FOO(gnuradio-noaa RUNTIME_COMPONENT "noaa_runtime" DEVEL_COMPONENT "noaa_devel")
 
48
 
 
49
########################################################################
 
50
# Install header files
 
51
########################################################################
 
52
install(FILES
 
53
    noaa_api.h
 
54
    noaa_hrpt_decoder.h
 
55
    noaa_hrpt_deframer.h
 
56
    noaa_hrpt_pll_cf.h
 
57
    DESTINATION ${GR_INCLUDE_DIR}/gnuradio
 
58
    COMPONENT "noaa_devel"
 
59
)