-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.bak
23 lines (19 loc) · 1.25 KB
/
CMakeLists.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#Generated by VisualGDB project wizard.
#Note: VisualGDB will automatically update this file when you add new sources to the project.
cmake_minimum_required(VERSION 3.3.0)
project(SoapyHifiBerrySDR)
set(LIBRARIES_FROM_REFERENCES -lpthread -lSoapySDR -lliquid -lasound)
add_library(SoapyHifiBerrySDR SHARED SoapyHifiBerry.cpp AudioInput.cpp AudioOutput.cpp configfile.cpp configoption.cpp RtAudio.cpp TCA9548.cpp TCA9548.h si5351.cpp SoapyHifiBerrySettings.cpp SoapyHifiBerryStreaming.cpp strlib.cpp Audiodefs.h AudioInput.h AudioOutput.h configfile.h configoption.h DataBuffer.h RtAudio.h si5351.h SoapyHifiBerry.h strlib.h)
target_compile_definitions(SoapyHifiBerrySDR PRIVATE __LINUX_ALSA__)
target_compile_options(SoapyHifiBerrySDR PRIVATE -O3 -ggdb )
set_property(TARGET SoapyHifiBerrySDR PROPERTY CXX_STANDARD 17)
target_link_libraries(SoapyHifiBerrySDR "${LIBRARIES_FROM_REFERENCES}")
########################################################################
# build the module
########################################################################
find_package(SoapySDR CONFIG)
if (NOT SoapySDR_FOUND)
message(WARNING "SoapySDR development files not found - skipping support")
return()
endif ()
install(TARGETS SoapyHifiBerrySDR DESTINATION ${CMAKE_LIB_DEST})