From c37a45f2594e2b6f0403141e23ca12a76285b18f Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Sat, 21 Mar 2015 10:23:54 -0400 Subject: [PATCH] cmake: add Volk --- CMakeLists.txt | 7 +++++++ lib/CMakeLists.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28995ba..c58531c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS) find_package(Gnuradio) find_package(CppUnit) find_package(PythonLibs 2) +find_package(Volk) if(NOT GNURADIO_RUNTIME_FOUND) message(FATAL_ERROR "GnuRadio Runtime required to compile ieee802_15_4") @@ -98,6 +99,10 @@ if(NOT PYTHONLIBS_FOUND) message(FATAL_ERROR "Python required to compile ieee802_15_4") endif() +if(NOT VOLK_FOUND) + message(FATAL_ERROR "Volk required to compile ieee802_15_4") +endif() + ######################################################################## # Setup logging options ######################################################################## @@ -133,6 +138,7 @@ include_directories( ${Boost_INCLUDE_DIRS} ${CPPUNIT_INCLUDE_DIRS} ${GNURADIO_RUNTIME_INCLUDE_DIRS} + ${VOLK_INCLUDE_DIRS} ${LOG4CPP_INCLUDE_DIRS} ) @@ -140,6 +146,7 @@ link_directories( ${Boost_LIBRARY_DIRS} ${CPPUNIT_LIBRARY_DIRS} ${GNURADIO_RUNTIME_LIBRARY_DIRS} + ${VOLK_LIBRARY_DIRS} ${LOG4CPP_LIBRARY_DIRS} ) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 786f7fc..477df12 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -55,6 +55,7 @@ list(APPEND ieee802_15_4_sources list(APPEND ieee802_15_4_libs ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES} + ${VOLK_LIBRARIES} ${LOG4CPP_LIBRARIES} )