mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 18:15:45 -05:00
45 lines
759 B
CMake
45 lines
759 B
CMake
if(WIN32)
|
|
# ${Boost_LIBRARY_DIRS} is empty on windows
|
|
link_directories(${BOOST_LIBRARYDIR})
|
|
endif()
|
|
|
|
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}
|
|
${Boost_INCLUDE_DIRS}
|
|
)
|
|
|
|
add_library(usrpdevice SHARED
|
|
${usrpdevice_SOURCES}
|
|
)
|
|
|
|
set_target_properties(usrpdevice
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
|
|
|
link_directories(${Boost_LIBRARY_DIRS})
|
|
|
|
target_link_libraries(usrpdevice
|
|
${UHD_LIBRARIES}
|
|
sdrbase
|
|
)
|
|
|
|
if(UHD_EXTERNAL)
|
|
add_dependencies(usrpdevice uhd)
|
|
endif()
|
|
|
|
install(TARGETS usrpdevice DESTINATION ${INSTALL_LIB_DIR})
|