From 407be2c329ec4d8f929a0ff51a657285a1da1583 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Fri, 7 Jun 2013 19:30:02 +0200 Subject: [PATCH] cmake: add gnuradio-pmt dependency for OSX linkage --- CMakeLists.txt | 6 +++++- lib/CMakeLists.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fdd8cff..b45b292 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,7 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks) ######################################################################## # Find build dependencies ######################################################################## -set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS) +set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS) find_package(Gnuradio "3.7.0") find_package(GnuradioIQBalance) find_package(UHD) @@ -167,11 +167,15 @@ include_directories( ${CMAKE_SOURCE_DIR}/lib ${Boost_INCLUDE_DIRS} ${GNURADIO_RUNTIME_INCLUDE_DIRS} + ${GNURADIO_PMT_INCLUDE_DIRS} + ${GNURADIO_BLOCKS_INCLUDE_DIRS} ) link_directories( ${Boost_LIBRARY_DIRS} ${GNURADIO_RUNTIME_LIBRARY_DIRS} + ${GNURADIO_PMT_LIBRARY_DIRS} + ${GNURADIO_BLOCKS_LIBRARY_DIRS} ) # Set component parameters diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index fef9638..25a4368 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -45,6 +45,7 @@ GR_OSMOSDR_APPEND_SRCS( GR_OSMOSDR_APPEND_LIBS( ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} + ${GNURADIO_PMT_LIBRARIES} ${GNURADIO_BLOCKS_LIBRARIES} )