-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathgr-qam.rb
51 lines (44 loc) · 1.59 KB
/
gr-qam.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class GrQam < Formula
homepage "https://github.com/argilo/gr-qam"
head "https://github.com/argilo/gr-qam.git"
patch :DATA
depends_on "cmake" => :build
depends_on "swig" => :build
depends_on "gnuradio"
depends_on "boost"
depends_on "cppunit"
def install
mkdir "build" do
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup"
# Point Python library to existing path or CMake test will fail.
args = %W[
-DCMAKE_SHARED_LINKER_FLAGS='-Wl,-undefined,dynamic_lookup'
-DPYTHON_LIBRARY='#{HOMEBREW_PREFIX}/lib/libgnuradio-runtime.dylib'
] + std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
end
__END__
diff --git i/CMakeLists.txt w/CMakeLists.txt
index 95242eb..08ed63e 100644
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -83,7 +83,6 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
########################################################################
# Find gnuradio build dependencies
########################################################################
-find_package(GnuradioRuntime)
find_package(CppUnit)
# To run a more advanced search for GNU Radio and it's components and
@@ -91,8 +90,8 @@ find_package(CppUnit)
# of GR_REQUIRED_COMPONENTS (in all caps) and change "version" to the
# minimum API compatible version required.
#
-# set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS FILTER ...)
-# find_package(Gnuradio "version")
+set(GR_REQUIRED_COMPONENTS RUNTIME PMT)
+find_package(Gnuradio)
if(NOT GNURADIO_RUNTIME_FOUND)
message(FATAL_ERROR "GnuRadio Runtime required to compile qam")