1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-17 02:16:33 -04:00
sdrangel/devices/usrp/CMakeLists.txt
Kacper Michajłow 70434765d7 Add support for VS2019 and Ninja
- Specify byproducts in external projects
- Use external Boost
- Remove hacky Qt detection
- Fix CRT mismatch in external projects (fixes SoapySDR on Windows)
- Minor fixes
2020-11-04 10:40:17 +01:00

38 lines
614 B
CMake

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}
)
add_library(usrpdevice SHARED
${usrpdevice_SOURCES}
)
set_target_properties(usrpdevice
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
target_link_libraries(usrpdevice
${UHD_LIBRARIES}
Boost::disable_autolinking
sdrbase
)
if(UHD_EXTERNAL)
add_dependencies(usrpdevice uhd)
endif()
install(TARGETS usrpdevice DESTINATION ${INSTALL_LIB_DIR})