cmake: add gnuradio-pmt dependency for OSX linkage

This commit is contained in:
Dimitri Stolnikov 2013-06-07 19:30:02 +02:00
parent 86b906a019
commit 407be2c329
2 changed files with 6 additions and 1 deletions

View File

@ -143,7 +143,7 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
######################################################################## ########################################################################
# Find build dependencies # Find build dependencies
######################################################################## ########################################################################
set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS) set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS)
find_package(Gnuradio "3.7.0") find_package(Gnuradio "3.7.0")
find_package(GnuradioIQBalance) find_package(GnuradioIQBalance)
find_package(UHD) find_package(UHD)
@ -167,11 +167,15 @@ include_directories(
${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/lib
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${GNURADIO_RUNTIME_INCLUDE_DIRS} ${GNURADIO_RUNTIME_INCLUDE_DIRS}
${GNURADIO_PMT_INCLUDE_DIRS}
${GNURADIO_BLOCKS_INCLUDE_DIRS}
) )
link_directories( link_directories(
${Boost_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS}
${GNURADIO_RUNTIME_LIBRARY_DIRS} ${GNURADIO_RUNTIME_LIBRARY_DIRS}
${GNURADIO_PMT_LIBRARY_DIRS}
${GNURADIO_BLOCKS_LIBRARY_DIRS}
) )
# Set component parameters # Set component parameters

View File

@ -45,6 +45,7 @@ GR_OSMOSDR_APPEND_SRCS(
GR_OSMOSDR_APPEND_LIBS( GR_OSMOSDR_APPEND_LIBS(
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES}
${GNURADIO_PMT_LIBRARIES}
${GNURADIO_BLOCKS_LIBRARIES} ${GNURADIO_BLOCKS_LIBRARIES}
) )