Skip to content

Commit

Permalink
cmake bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Mar 30, 2022
1 parent 80d2440 commit b8bc942
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
10 changes: 9 additions & 1 deletion decoder_modules/m17_decoder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ if (MSVC)
target_link_directories(m17_decoder PRIVATE "C:/Program Files/codec2/lib")

target_link_libraries(m17_decoder PRIVATE libcodec2)

elseif (ANDROID)
target_include_directories(m17_decoder PUBLIC
/mnt/android_sdr/codec2/src
/mnt/android_sdr/codec2/build_${ANDROID_ABI}/
)

target_link_libraries(m17_decoder PUBLIC
/mnt/android_sdr/output/codec2/${ANDROID_ABI}/libcodec2.so
)
else (MSVC)
find_package(PkgConfig)

Expand Down
4 changes: 2 additions & 2 deletions source_modules/airspy_source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ if (MSVC)

target_link_libraries(airspy_source PRIVATE airspy)
elseif (ANDROID)
target_include_directories(sdrpp_core PUBLIC
target_include_directories(airspy_source PUBLIC
/mnt/android_sdr/libusb/libusb
/mnt/android_sdr/airspyone_host/libairspy/src
)

target_link_libraries(sdrpp_core PUBLIC
target_link_libraries(airspy_source PUBLIC
/mnt/android_sdr/output/libusb/${ANDROID_ABI}/libusb1.0.so
/mnt/android_sdr/output/libairspy/${ANDROID_ABI}/libairspy.so
)
Expand Down
4 changes: 2 additions & 2 deletions source_modules/airspyhf_source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ if (MSVC)

target_link_libraries(airspyhf_source PRIVATE airspyhf)
elseif (ANDROID)
target_include_directories(sdrpp_core PUBLIC
target_include_directories(airspyhf_source PUBLIC
/mnt/android_sdr/libusb/libusb
/mnt/android_sdr/airspyhf/libairspyhf/src
)

target_link_libraries(sdrpp_core PUBLIC
target_link_libraries(airspyhf_source PUBLIC
/mnt/android_sdr/output/libusb/${ANDROID_ABI}/libusb1.0.so
/mnt/android_sdr/output/libairspyhf/${ANDROID_ABI}/libairspyhf.so
)
Expand Down
4 changes: 2 additions & 2 deletions source_modules/hackrf_source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ if (MSVC)

target_link_libraries(hackrf_source PRIVATE hackrf)
elseif (ANDROID)
target_include_directories(sdrpp_core PUBLIC
target_include_directories(hackrf_source PUBLIC
/mnt/android_sdr/libusb/libusb
/mnt/android_sdr/hackrf/host/libhackrf/src
)

target_link_libraries(sdrpp_core PUBLIC
target_link_libraries(hackrf_source PUBLIC
/mnt/android_sdr/output/libusb/${ANDROID_ABI}/libusb1.0.so
/mnt/android_sdr/output/libhackrf/${ANDROID_ABI}/libhackrf.so
)
Expand Down
4 changes: 2 additions & 2 deletions source_modules/plutosdr_source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ if (MSVC)
target_link_libraries(plutosdr_source PRIVATE libiio)
target_link_libraries(plutosdr_source PRIVATE libad9361)
elseif (ANDROID)
target_include_directories(sdrpp_core PUBLIC
target_include_directories(plutosdr_source PUBLIC
/mnt/android_sdr/libiio
/mnt/android_sdr/libad9361-iio
)

target_link_libraries(sdrpp_core PUBLIC
target_link_libraries(plutosdr_source PUBLIC
/mnt/android_sdr/output/libxml2/${ANDROID_ABI}/libxml2.so
/mnt/android_sdr/output/libiio/${ANDROID_ABI}/libiio.so
/mnt/android_sdr/output/libad9361/${ANDROID_ABI}/libad9361.so
Expand Down
4 changes: 2 additions & 2 deletions source_modules/rtl_sdr_source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ if (MSVC)

target_link_libraries(rtl_sdr_source PRIVATE rtlsdr)
elseif (ANDROID)
target_include_directories(sdrpp_core PUBLIC
target_include_directories(rtl_sdr_source PUBLIC
/mnt/android_sdr/libusb/libusb
/mnt/android_sdr/librtlsdr/include
)

target_link_libraries(sdrpp_core PUBLIC
target_link_libraries(rtl_sdr_source PUBLIC
/mnt/android_sdr/output/libusb/${ANDROID_ABI}/libusb1.0.so
/mnt/android_sdr/output/librtlsdr/${ANDROID_ABI}/librtlsdr.so
)
Expand Down

0 comments on commit b8bc942

Please sign in to comment.