cmake bugfix

This commit is contained in:
AlexandreRouma 2022-03-30 17:33:47 +02:00
parent 80d244003a
commit b8bc942b84
6 changed files with 18 additions and 10 deletions

View File

@ -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)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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

View File

@ -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
)