Merge pull request #10 from dholm/bugfix/cmake-pmt

cmake: Instruct GNU Radio to look for pmt library

I did a little test with pmt library present and with some files of the library removed. This check discovers that if pmt check is missing or not so I'm merging it.
This commit is contained in:
Piotr K. 2014-12-03 22:40:33 +01:00
commit 02f2662d5d
1 changed files with 2 additions and 9 deletions

View File

@ -88,19 +88,12 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
########################################################################
# Find gnuradio build dependencies
########################################################################
find_package(GnuradioRuntime)
set(GR_REQUIRED_COMPONENTS RUNTIME PMT)
find_package(Gnuradio)
find_package(Volk)
find_package(CppUnit)
find_package(Doxygen)
# To run a more advanced search for GNU Radio and it's components and
# versions, use the following. Add any components required to the list
# 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")
if(NOT GNURADIO_RUNTIME_FOUND)
message(FATAL_ERROR "GnuRadio Runtime required to compile gsm")
endif()