Statistics
| Branch: | Tag: | Revision:

root / gr-fft / CMakeLists.txt @ a7afbf20

History | View | Annotate | Download (3.3 kB)

1
# Copyright 2012 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 dependencies
22
########################################################################
23
include(GrBoost)
24
25
find_package(FFTW3f)
26
27
########################################################################
28
# Register component
29
########################################################################
30
include(GrComponent)
31
32
GR_REGISTER_COMPONENT("gr-fft" ENABLE_GR_FFT
33
    ENABLE_GRUEL
34
    ENABLE_VOLK
35
    Boost_FOUND
36
    ENABLE_GR_CORE
37
    FFTW3F_FOUND
38
)
39
40
GR_SET_GLOBAL(GR_FFT_INCLUDE_DIRS
41
    ${CMAKE_CURRENT_SOURCE_DIR}/lib
42
    ${CMAKE_CURRENT_SOURCE_DIR}/include
43
)
44
45
########################################################################
46
# Begin conditional configuration
47
########################################################################
48
if(ENABLE_GR_FFT)
49
50
########################################################################
51
# Setup CPack components
52
########################################################################
53
include(GrPackage)
54
CPACK_SET(CPACK_COMPONENT_GROUP_FFT_DESCRIPTION "GNU Radio FFT Blocks")
55
56
CPACK_COMPONENT("fft_runtime"
57
    GROUP        "FFT"
58
    DISPLAY_NAME "Runtime"
59
    DESCRIPTION  "Runtime"
60
    DEPENDS      "core_runtime"
61
)
62
63
CPACK_COMPONENT("fft_devel"
64
    GROUP        "FFT"
65
    DISPLAY_NAME "Development"
66
    DESCRIPTION  "C++ headers, package config, import libraries"
67
    DEPENDS      "core_devel"
68
)
69
70
CPACK_COMPONENT("fft_python"
71
    GROUP        "FFT"
72
    DISPLAY_NAME "Python"
73
    DESCRIPTION  "Python modules for runtime; GRC xml files"
74
    DEPENDS      "core_python;fft_runtime"
75
)
76
77
CPACK_COMPONENT("fft_swig"
78
    GROUP        "FFT"
79
    DISPLAY_NAME "SWIG"
80
    DESCRIPTION  "SWIG development .i files"
81
    DEPENDS      "core_swig;fft_python;fft_devel"
82
)
83
84
########################################################################
85
# Add subdirectories
86
########################################################################
87
add_subdirectory(include/fft)
88
add_subdirectory(lib)
89
if(ENABLE_PYTHON)
90
    add_subdirectory(swig)
91
    add_subdirectory(python)
92
    add_subdirectory(grc)
93
endif(ENABLE_PYTHON)
94
#add_subdirectory(examples)
95
add_subdirectory(doc)
96
97
########################################################################
98
# Create Pkg Config File
99
########################################################################
100
configure_file(
101
    ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-fft.pc.in
102
    ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-fft.pc
103
@ONLY)
104
105
install(
106
    FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-fft.pc
107
    DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
108
    COMPONENT "fft_devel"
109
)
110
111
endif(ENABLE_GR_FFT)