mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-08-05 23:51:44 +02:00
new cmake stuff
This commit is contained in:
CMakeLists.txtsdrpp_module.cmake
core
decoder_modules
atv_decoder
falcon9_decoder
kg_sstv_decoder
m17_decoder
meteor_demodulator
radio
weather_sat_decoder
misc_modules
demo_module
discord_integration
frequency_manager
recorder
rigctl_client
rigctl_server
scanner
scheduler
sink_modules
android_audio_sink
audio_sink
network_sink
new_portaudio_sink
portaudio_sink
source_modules
airspy_source
airspyhf_source
bladerf_source
file_source
hackrf_source
hermes_source
limesdr_source
plutosdr_source
rfspace_source
rtl_sdr_source
rtl_tcp_source
sdrplay_source
sdrpp_server_source
soapy_source
spectran_http_source
spectran_source
spyserver_source
usrp_source
@@ -3,19 +3,7 @@ project(soapy_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(soapy_source SHARED ${SRC})
|
||||
target_link_libraries(soapy_source PRIVATE sdrpp_core)
|
||||
set_target_properties(soapy_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(soapy_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(soapy_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(soapy_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(soapy_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@@ -33,7 +21,4 @@ else (MSVC)
|
||||
target_include_directories(soapy_source PRIVATE ${SOAPY_INCLUDE_DIRS})
|
||||
target_link_directories(soapy_source PRIVATE ${SOAPY_LIBRARY_DIRS})
|
||||
target_link_libraries(soapy_source PRIVATE ${SOAPY_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS soapy_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
Reference in New Issue
Block a user