compile on osx

This commit is contained in:
Bastian Bloessl
2013-10-18 13:44:38 +02:00
parent eb5a67cc86
commit ab0453d081
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
########################################################################
# Find gnuradio build dependencies
########################################################################
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT)
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT PMT)
find_package(Gnuradio)
find_package(CppUnit)
+2 -1
View File
@@ -120,12 +120,13 @@ list(APPEND gr_ieee802_11_libs
${Boost_LIBRARIES}
${GNURADIO_RUNTIME_LIBRARIES}
${GNURADIO_FFT_LIBRARIES}
${GNURADIO_PMT_LIBRARIES}
${GNURADIO_FILTER_LIBRARIES}
)
add_library(gnuradio-ieee802_11 SHARED ${gr_ieee802_11_sources})
add_dependencies(gnuradio-ieee802_11 ieee802_11_generated_includes)
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs} itpp)
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs} itpp log4cpp)
set_target_properties(gnuradio-ieee802_11 PROPERTIES DEFINE_SYMBOL "gnuradio_ieee802_11_EXPORTS")
########################################################################
+5
View File
@@ -21,7 +21,12 @@
#include "utils.h"
#if defined(__APPLE__)
#include <architecture/byte_order.h>
#define htole16(x) OSSwapHostToLittleInt16(x)
#else
#include <endian.h>
#endif
#include <boost/crc.hpp>
#include <iostream>