-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (42 loc) · 1.2 KB
/
CMakeLists.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
########################################################################
# Build Soapy SDR support module for simple TCP remote RX pipe
########################################################################
cmake_minimum_required(VERSION 2.8.7)
project(SoapyTCPRemote CXX C)
if (BACKPORT)
find_package(SoapySDR "0.7.2" EXACT NO_MODULE)
else()
find_package(SoapySDR "0.6.0" NO_MODULE)
endif()
if (NOT SoapySDR_FOUND)
message(FATAL_ERROR "Soapy SDR development files not found...")
endif ()
find_package(Threads REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
if(CMAKE_COMPILER_IS_GNUCXX)
#disable warnings for unused parameters
add_definitions(-Wno-unused-parameter)
endif(CMAKE_COMPILER_IS_GNUCXX)
SOAPY_SDR_MODULE_UTIL(
TARGET TCPRemoteSupport
SOURCES
SoapyTCPRemote.cpp
)
target_link_libraries(TCPRemoteSupport
Threads::Threads
)
add_executable(SoapyTCPServer
SoapyTCPServer.cpp
)
target_link_libraries(SoapyTCPServer
SoapySDR
Threads::Threads
)
add_executable(SoapyTCPTest
SoapyTCPTest.cpp
)
target_link_libraries(SoapyTCPTest
SoapySDR
)
include(GNUInstallDirs)
install(TARGETS SoapyTCPServer DESTINATION ${CMAKE_INSTALL_BINDIR})