1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
########################################################################
# Thread config support
########################################################################
find_library(
RT_LIBRARIES
NAMES rt
PATHS /usr/lib /usr/lib64
)
if (RT_LIBRARIES)
list(APPEND SoapySDR_LIBRARIES ${RT_LIBRARIES})
endif()
if(WIN32)
list(APPEND SOAPY_SERVER_SOURCES ThreadPrioWindows.cpp)
elseif(UNIX)
list(APPEND SOAPY_SERVER_SOURCES ThreadPrioUnix.cpp)
endif()
########################################################################
# Build the remote server application
########################################################################
list(APPEND SOAPY_SERVER_SOURCES
SoapyServer.cpp
ServerListener.cpp
ClientHandler.cpp
LogForwarding.cpp
ServerStreamData.cpp
)
if (MSVC)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/msvc)
endif ()
include_directories(${SoapySDR_INCLUDE_DIRS})
add_executable(SoapySDRServer ${SOAPY_SERVER_SOURCES})
target_link_libraries(SoapySDRServer ${SoapySDR_LIBRARIES} SoapySDRRemoteCommon)
install(TARGETS SoapySDRServer DESTINATION bin)
#install man pages for the application executable
install(FILES SoapySDRServer.1 DESTINATION share/man/man1)
|