Skip to content

Commit

Permalink
cmake: add Volk
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelld committed Mar 21, 2015
1 parent b1e90c8 commit c37a45f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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")
Expand All @@ -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
########################################################################
Expand Down Expand Up @@ -133,13 +138,15 @@ include_directories(
${Boost_INCLUDE_DIRS}
${CPPUNIT_INCLUDE_DIRS}
${GNURADIO_RUNTIME_INCLUDE_DIRS}
${VOLK_INCLUDE_DIRS}
${LOG4CPP_INCLUDE_DIRS}
)

link_directories(
${Boost_LIBRARY_DIRS}
${CPPUNIT_LIBRARY_DIRS}
${GNURADIO_RUNTIME_LIBRARY_DIRS}
${VOLK_LIBRARY_DIRS}
${LOG4CPP_LIBRARY_DIRS}
)

Expand Down
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Expand Up @@ -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}
)

Expand Down

0 comments on commit c37a45f

Please sign in to comment.