mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 18:57:39 +01:00
Final plutosdr macos fix
This commit is contained in:
parent
3ca7dc87e7
commit
9c2cb26376
4
.github/workflows/build_all.yml
vendored
4
.github/workflows/build_all.yml
vendored
@ -96,10 +96,10 @@ jobs:
|
||||
run: wget https://www.sdrplay.com/software/SDRplay_RSP_API-MacOSX-3.07.3.pkg && sudo installer -pkg SDRplay_RSP_API-MacOSX-3.07.3.pkg -target /
|
||||
|
||||
- name: Install libiio
|
||||
run: git clone https://github.com/analogdevicesinc/libiio && cd libiio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DOSX_PACKAGE=OFF -DCMAKE_INSTALL_PREFIX=/usr/local .. && make -j3 && sudo make install && cd ../../
|
||||
run: git clone https://github.com/analogdevicesinc/libiio && cd libiio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
|
||||
|
||||
- name: Install libad9361
|
||||
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DOSX_PACKAGE=OFF -DCMAKE_INSTALL_PREFIX=/usr/local .. && make -j3 && sudo make install && cd ../../
|
||||
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
|
||||
|
||||
- name: Prepare CMake
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
|
@ -25,6 +25,13 @@ if (MSVC)
|
||||
target_link_libraries(plutosdr_source PRIVATE libiio)
|
||||
target_link_libraries(plutosdr_source PRIVATE libad9361)
|
||||
else (MSVC)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_include_directories(plutosdr_source PRIVATE "/Library/Frameworks/iio.framework/Headers")
|
||||
target_link_libraries(plutosdr_source PRIVATE "/Library/Frameworks/iio.framework/iio")
|
||||
|
||||
target_include_directories(plutosdr_source PRIVATE "/Library/Frameworks/ad9361.framework/Headers")
|
||||
target_link_libraries(plutosdr_source PRIVATE "/Library/Frameworks/ad9361.framework/ad9361")
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
|
||||
pkg_check_modules(LIBIIO REQUIRED libiio)
|
||||
@ -39,5 +46,8 @@ else (MSVC)
|
||||
target_link_libraries(plutosdr_source PRIVATE ${LIBAD9361_LIBRARIES})
|
||||
endif()
|
||||
|
||||
target_include_directories(plutosdr_source PRIVATE ${LIBAD9361_INCLUDE_DIRS})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS plutosdr_source DESTINATION lib/sdrpp/plugins)
|
Loading…
Reference in New Issue
Block a user