mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 04:17:50 +02:00
Final work on MacOS compatibility
This commit is contained in:
@ -21,6 +21,8 @@ if (MSVC)
|
||||
# Lib path
|
||||
target_link_directories(airspy_source PRIVATE "C:/Program Files/PothosSDR/bin/")
|
||||
|
||||
target_include_directories(airspyhf_source PUBLIC "C:/Program Files/PothosSDR/include/libairspy/")
|
||||
|
||||
target_link_libraries(airspy_source PRIVATE airspy)
|
||||
else (MSVC)
|
||||
find_package(PkgConfig)
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <gui/style.h>
|
||||
#include <config.h>
|
||||
#include <options.h>
|
||||
#include <libairspy/airspy.h>
|
||||
#include <airspy.h>
|
||||
|
||||
|
||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||
|
@ -21,6 +21,8 @@ if (MSVC)
|
||||
# Lib path
|
||||
target_link_directories(airspyhf_source PRIVATE "C:/Program Files/PothosSDR/bin/")
|
||||
|
||||
target_include_directories(airspyhf_source PUBLIC "C:/Program Files/PothosSDR/include/libairspyhf/")
|
||||
|
||||
target_link_libraries(airspyhf_source PRIVATE airspyhf)
|
||||
else (MSVC)
|
||||
find_package(PkgConfig)
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <gui/style.h>
|
||||
#include <config.h>
|
||||
#include <options.h>
|
||||
#include <libairspyhf/airspyhf.h>
|
||||
#include <airspyhf.h>
|
||||
#include <gui/widgets/stepped_slider.h>
|
||||
|
||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||
|
@ -23,8 +23,13 @@ if (MSVC)
|
||||
|
||||
target_link_libraries(bladerf_source PRIVATE bladeRF)
|
||||
else (MSVC)
|
||||
# Not in pkg-config
|
||||
target_link_libraries(bladerf_source PRIVATE bladeRF)
|
||||
find_package(PkgConfig)
|
||||
|
||||
pkg_check_modules(LIBBLADERF REQUIRED libbladeRF)
|
||||
|
||||
target_include_directories(bladerf_source PRIVATE ${LIBBLADERF_INCLUDE_DIRS})
|
||||
target_link_directories(bladerf_source PRIVATE ${LIBBLADERF_LIBRARY_DIRS})
|
||||
target_link_libraries(bladerf_source PRIVATE ${LIBBLADERF_LIBRARIES})
|
||||
|
||||
# Include it because for some reason pkgconfig doesn't look here?
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
|
@ -130,7 +130,7 @@ const char* ifModeTxt =
|
||||
|
||||
const char* rspduo_antennaPortsTxt = "Tuner 1 (50Ohm)\0Tuner 1 (Hi-Z)\0Tuner 2 (50Ohm)\0";
|
||||
|
||||
const char* agcModesTxt = "Off\0005Hz\00050Hz\000100Hz";
|
||||
const char* agcModesTxt = "Off\0005Hz\00050Hz\000100Hz\000";
|
||||
|
||||
class SDRPlaySourceModule : public ModuleManager::Instance {
|
||||
public:
|
||||
|
Reference in New Issue
Block a user