2020-10-02 21:45:28 +00:00
|
|
|
project(usrpdevice)
|
|
|
|
|
|
|
|
|
|
|
|
set(usrpdevice_SOURCES
|
|
|
|
deviceusrp.cpp
|
|
|
|
deviceusrpparam.cpp
|
|
|
|
deviceusrpshared.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(usrpdevice_HEADERS
|
|
|
|
deviceusrp.h
|
|
|
|
deviceusrpparam.h
|
|
|
|
deviceusrpshared.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${UHD_INCLUDE_DIR}
|
2020-11-05 10:11:43 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2020-10-02 21:45:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(usrpdevice SHARED
|
|
|
|
${usrpdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(usrpdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
|
|
|
|
2020-11-05 10:11:43 +00:00
|
|
|
if (NOT WIN32)
|
|
|
|
link_directories(${Boost_LIBRARY_DIRS})
|
|
|
|
endif()
|
|
|
|
|
2020-10-02 21:45:28 +00:00
|
|
|
target_link_libraries(usrpdevice
|
|
|
|
${UHD_LIBRARIES}
|
2020-11-01 12:03:13 +00:00
|
|
|
Boost::disable_autolinking
|
2020-10-02 21:45:28 +00:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
|
|
|
if(UHD_EXTERNAL)
|
|
|
|
add_dependencies(usrpdevice uhd)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS usrpdevice DESTINATION ${INSTALL_LIB_DIR})
|