2022-10-23 16:41:45 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(usrp_source)
|
|
|
|
|
|
|
|
file(GLOB SRC "src/*.cpp")
|
|
|
|
|
2023-02-14 16:25:05 +01:00
|
|
|
include(${SDRPP_MODULE_CMAKE})
|
2022-10-23 16:41:45 +02:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
# Lib path
|
|
|
|
target_link_directories(usrp_source PRIVATE "C:/Program Files/PothosSDR/bin/")
|
|
|
|
|
|
|
|
target_include_directories(usrp_source PRIVATE "C:/Program Files/PothosSDR/include/")
|
|
|
|
|
|
|
|
target_link_libraries(usrp_source PRIVATE uhd)
|
|
|
|
else (MSVC)
|
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
pkg_check_modules(LIBUHD REQUIRED uhd)
|
|
|
|
|
|
|
|
target_include_directories(usrp_source PRIVATE ${LIBUHD_INCLUDE_DIRS})
|
|
|
|
target_link_directories(usrp_source PRIVATE ${LIBUHD_LIBRARY_DIRS})
|
|
|
|
target_link_libraries(usrp_source PRIVATE ${LIBUHD_LIBRARIES})
|
2023-02-14 16:25:05 +01:00
|
|
|
endif ()
|