new cmake stuff

This commit is contained in:
AlexandreRouma
2023-02-14 16:25:05 +01:00
parent a1b6cbb38a
commit 7cfc30ee6e
42 changed files with 134 additions and 906 deletions
CMakeLists.txt
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
sdrpp_module.cmake
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(limesdr_source)
file(GLOB SRC "src/*.cpp")
add_library(limesdr_source SHARED ${SRC})
target_link_libraries(limesdr_source PRIVATE sdrpp_core)
set_target_properties(limesdr_source PROPERTIES PREFIX "")
target_include_directories(limesdr_source PRIVATE "src/")
if (MSVC)
target_compile_options(limesdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@@ -32,7 +20,4 @@ else (MSVC)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_include_directories(limesdr_source PRIVATE "/usr/local/include")
endif()
endif ()
# Install directives
install(TARGETS limesdr_source DESTINATION lib/sdrpp/plugins)
endif ()