mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-17 02:16:33 -04:00
70434765d7
- Specify byproducts in external projects - Use external Boost - Remove hacky Qt detection - Fix CRT mismatch in external projects (fixes SoapySDR on Windows) - Minor fixes
38 lines
614 B
CMake
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})
|