cmake: require swig
This commit is contained in:
+10
-5
@@ -82,18 +82,18 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
|
|||||||
# Find gnuradio build dependencies
|
# Find gnuradio build dependencies
|
||||||
########################################################################
|
########################################################################
|
||||||
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT PMT DIGITAL)
|
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT PMT DIGITAL)
|
||||||
|
|
||||||
find_package(Gnuradio)
|
find_package(Gnuradio)
|
||||||
find_package(CppUnit)
|
|
||||||
find_package(Log4cpp)
|
|
||||||
|
|
||||||
if(NOT GNURADIO_RUNTIME_FOUND)
|
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()
|
endif()
|
||||||
|
|
||||||
|
find_package(CppUnit)
|
||||||
if(NOT CPPUNIT_FOUND)
|
if(NOT CPPUNIT_FOUND)
|
||||||
message(FATAL_ERROR "CppUnit required to compile ieee802-11")
|
message(FATAL_ERROR "CppUnit required to compile gr-ieee802-11")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
find_package(Log4cpp)
|
||||||
if (LOG4CPP_FOUND)
|
if (LOG4CPP_FOUND)
|
||||||
message(STATUS "Found LOG4CPP: ${LOG4CPP_LIBRARIES}")
|
message(STATUS "Found LOG4CPP: ${LOG4CPP_LIBRARIES}")
|
||||||
add_definitions("-DGR_IEEE80211_LOG4CPP")
|
add_definitions("-DGR_IEEE80211_LOG4CPP")
|
||||||
@@ -101,6 +101,11 @@ else ()
|
|||||||
message(STATUS "LOG4CPP not found (not required).")
|
message(STATUS "LOG4CPP not found (not required).")
|
||||||
endif ()
|
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
|
# On Apple only, set install name and use rpath correctly, if not already set
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user