diff --git a/CMakeLists.txt b/CMakeLists.txt index 7516090..0cce92f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,18 +82,18 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks) # Find gnuradio build dependencies ######################################################################## set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT PMT DIGITAL) + find_package(Gnuradio) -find_package(CppUnit) -find_package(Log4cpp) - if(NOT GNURADIO_RUNTIME_FOUND) - message(FATAL_ERROR "GnuRadio Runtime required to compile ieee802-11") + message(FATAL_ERROR "GNU Radio required to compile gr-ieee802-11") endif() +find_package(CppUnit) if(NOT CPPUNIT_FOUND) - message(FATAL_ERROR "CppUnit required to compile ieee802-11") + message(FATAL_ERROR "CppUnit required to compile gr-ieee802-11") endif() +find_package(Log4cpp) if (LOG4CPP_FOUND) message(STATUS "Found LOG4CPP: ${LOG4CPP_LIBRARIES}") add_definitions("-DGR_IEEE80211_LOG4CPP") @@ -101,6 +101,11 @@ else () message(STATUS "LOG4CPP not found (not required).") endif () +find_package(SWIG) +if(NOT SWIG_FOUND) + message(FATAL_ERROR "SWIG required to compile gr-ieee802-11") +endif() + ######################################################################## # On Apple only, set install name and use rpath correctly, if not already set ########################################################################