Skip to content

Commit

Permalink
mac test #11
Browse files Browse the repository at this point in the history
  • Loading branch information
fventuri committed Jun 9, 2024
1 parent eb7fa43 commit ff0a106
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ if(APPLE)
set_target_properties(gnuradio-sdrplay3 PROPERTIES
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
)
add_custom_command(TARGET gnuradio-sdrplay3
POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3 @rpath/libsdrplay_api.so.3 $<TARGET_FILE:gnuradio-sdrplay3>
add_custom_command(
TARGET gnuradio-sdrplay3 POST_BUILD
COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3 @rpath/libsdrplay_api.so.3 "$<TARGET_FILE:gnuradio-sdrplay3>"
)
endif(APPLE)

Expand Down
7 changes: 7 additions & 0 deletions python/sdrplay3/bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ GR_PYBIND_MAKE_OOT(sdrplay3
# ${CMAKE_BINARY_DIR}/test_modules/gnuradio/sdrplay3/
# DEPENDS sdrplay3_python)

if(APPLE)
add_custom_command(
TARGET sdrplay3_python POST_BUILD
COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3 @rpath/libsdrplay_api.so.3 "$<TARGET_FILE:sdrplay3_python>"
)
endif(APPLE)

install(TARGETS sdrplay3_python DESTINATION ${GR_PYTHON_DIR}/gnuradio/sdrplay3 COMPONENT pythonapi)

0 comments on commit ff0a106

Please sign in to comment.