2021-04-26 15:03:52 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2020-10-24 13:33:00 +00:00
|
|
|
project(sdrpp)
|
2020-06-10 02:13:56 +00:00
|
|
|
|
2021-04-18 18:30:21 +00:00
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
|
|
|
else()
|
|
|
|
set(CMAKE_INSTALL_PREFIX "/usr")
|
|
|
|
endif()
|
|
|
|
|
2022-02-13 16:25:23 +00:00
|
|
|
# Configure toolchain for android
|
|
|
|
if (ANDROID)
|
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS
|
|
|
|
"${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate"
|
|
|
|
)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=c++17")
|
|
|
|
endif (ANDROID)
|
|
|
|
|
2022-01-29 19:35:08 +00:00
|
|
|
# Backends
|
|
|
|
option(OPT_BACKEND_GLFW "Use the GLFW backend" ON)
|
2022-02-13 16:25:23 +00:00
|
|
|
option(OPT_BACKEND_ANDROID "Use the Android backend" OFF)
|
2022-01-29 19:35:08 +00:00
|
|
|
|
2021-08-16 16:49:00 +00:00
|
|
|
# Compatibility Options
|
|
|
|
option(OPT_OVERRIDE_STD_FILESYSTEM "Use a local version of std::filesystem on systems that don't have it yet" OFF)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
# Sources
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_AIRSPY_SOURCE "Build Airspy Source Module (Dependencies: libairspy)" ON)
|
|
|
|
option(OPT_BUILD_AIRSPYHF_SOURCE "Build Airspy HF+ Source Module (Dependencies: libairspyhf)" ON)
|
|
|
|
option(OPT_BUILD_BLADERF_SOURCE "Build BladeRF Source Module (Dependencies: libbladeRF)" OFF)
|
2021-06-28 00:22:51 +00:00
|
|
|
option(OPT_BUILD_FILE_SOURCE "Wav file source" ON)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_HACKRF_SOURCE "Build HackRF Source Module (Dependencies: libhackrf)" ON)
|
|
|
|
option(OPT_BUILD_LIMESDR_SOURCE "Build LimeSDR Source Module (Dependencies: liblimesuite)" OFF)
|
2022-01-21 19:22:13 +00:00
|
|
|
option(OPT_BUILD_SDRPP_SERVER_SOURCE "Build SDR++ Server Source Module (no dependencies required)" ON)
|
2022-01-01 04:27:10 +00:00
|
|
|
option(OPT_BUILD_RFSPACE_SOURCE "Build RFspace Source Module (no dependencies required)" ON)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_RTL_SDR_SOURCE "Build RTL-SDR Source Module (Dependencies: librtlsdr)" ON)
|
2021-06-28 00:22:51 +00:00
|
|
|
option(OPT_BUILD_RTL_TCP_SOURCE "Build RTL-TCP Source Module (no dependencies required)" ON)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_SDRPLAY_SOURCE "Build SDRplay Source Module (Dependencies: libsdrplay)" OFF)
|
|
|
|
option(OPT_BUILD_SOAPY_SOURCE "Build SoapySDR Source Module (Dependencies: soapysdr)" ON)
|
2021-07-19 02:52:13 +00:00
|
|
|
option(OPT_BUILD_SPYSERVER_SOURCE "Build SpyServer Source Module (no dependencies required)" ON)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_PLUTOSDR_SOURCE "Build PlutoSDR Source Module (Dependencies: libiio, libad9361)" ON)
|
2021-06-28 00:22:51 +00:00
|
|
|
|
|
|
|
# Sinks
|
2022-02-13 16:25:23 +00:00
|
|
|
option(OPT_BUILD_ANDROID_AUDIO_SINK "Build Android Audio Sink Module (Dependencies: AAudio, only for android)" OFF)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_AUDIO_SINK "Build Audio Sink Module (Dependencies: rtaudio)" ON)
|
|
|
|
option(OPT_BUILD_PORTAUDIO_SINK "Build PortAudio Sink Module (Dependencies: portaudio)" OFF)
|
2021-07-30 19:56:34 +00:00
|
|
|
option(OPT_BUILD_NETWORK_SINK "Build Audio Sink Module (no dependencies required)" ON)
|
2021-09-20 17:59:35 +00:00
|
|
|
option(OPT_BUILD_NEW_PORTAUDIO_SINK "Build the new PortAudio Sink Module (Dependencies: portaudio)" OFF)
|
2021-06-28 00:22:51 +00:00
|
|
|
|
|
|
|
# Decoders
|
2021-04-10 01:06:51 +00:00
|
|
|
option(OPT_BUILD_FALCON9_DECODER "Build the falcon9 live decoder (Dependencies: ffplay)" OFF)
|
2022-02-24 19:49:53 +00:00
|
|
|
option(OPT_BUILD_KG_SSTV_DECODER "Build the M17 decoder module (no dependencies required)" OFF)
|
2022-07-02 14:53:09 +00:00
|
|
|
option(OPT_BUILD_M17_DECODER "Build the M17 decoder module (Dependencies: codec2)" OFF)
|
|
|
|
option(OPT_BUILD_METEOR_DEMODULATOR "Build the meteor demodulator module (no dependencies required)" ON)
|
2021-06-28 00:22:51 +00:00
|
|
|
option(OPT_BUILD_RADIO "Main audio modulation decoder (AM, FM, SSB, etc...)" ON)
|
2021-11-18 21:26:25 +00:00
|
|
|
option(OPT_BUILD_WEATHER_SAT_DECODER "Build the HRPT decoder module (no dependencies required)" OFF)
|
2021-06-28 00:22:51 +00:00
|
|
|
|
|
|
|
# Misc
|
2021-04-21 23:19:36 +00:00
|
|
|
option(OPT_BUILD_DISCORD_PRESENCE "Build the Discord Rich Presence module" ON)
|
2021-07-03 17:46:21 +00:00
|
|
|
option(OPT_BUILD_FREQUENCY_MANAGER "Build the Frequency Manager module" ON)
|
2021-06-28 00:22:51 +00:00
|
|
|
option(OPT_BUILD_RECORDER "Audio and baseband recorder" ON)
|
2022-09-28 13:55:50 +00:00
|
|
|
option(OPT_BUILD_RIGCTL_CLIENT "Rigctl client to make SDR++ act as a panadapter" ON)
|
2021-07-15 23:49:33 +00:00
|
|
|
option(OPT_BUILD_RIGCTL_SERVER "Rigctl backend for controlling SDR++ with software like gpredict" ON)
|
2022-08-30 14:07:49 +00:00
|
|
|
option(OPT_BUILD_SCANNER "Frequency scanner" ON)
|
2021-11-14 17:30:58 +00:00
|
|
|
option(OPT_BUILD_SCHEDULER "Build the scheduler" OFF)
|
2021-06-28 00:22:51 +00:00
|
|
|
|
2021-10-28 08:05:31 +00:00
|
|
|
# Other options
|
2022-02-24 19:49:53 +00:00
|
|
|
option(USE_INTERNAL_LIBCORRECT "Use an internal version of libcorrect" ON)
|
2021-11-17 21:37:21 +00:00
|
|
|
option(USE_BUNDLE_DEFAULTS "Set the default resource and module directories to the right ones for a MacOS .app" OFF)
|
2021-10-28 08:05:31 +00:00
|
|
|
|
2021-10-03 15:48:32 +00:00
|
|
|
# Core of SDR++
|
|
|
|
add_subdirectory("core")
|
|
|
|
|
2020-12-22 13:50:26 +00:00
|
|
|
# Source modules
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_AIRSPY_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/airspy_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_AIRSPY_SOURCE)
|
2020-12-22 13:50:26 +00:00
|
|
|
|
|
|
|
if (OPT_BUILD_AIRSPYHF_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/airspyhf_source")
|
2020-12-22 13:50:26 +00:00
|
|
|
endif (OPT_BUILD_AIRSPYHF_SOURCE)
|
|
|
|
|
2021-03-20 20:53:44 +00:00
|
|
|
if (OPT_BUILD_BLADERF_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/bladerf_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_BLADERF_SOURCE)
|
2021-03-20 20:53:44 +00:00
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_FILE_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/file_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_FILE_SOURCE)
|
2020-12-22 13:50:26 +00:00
|
|
|
|
2020-12-25 23:42:15 +00:00
|
|
|
if (OPT_BUILD_HACKRF_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/hackrf_source")
|
2020-12-25 23:42:15 +00:00
|
|
|
endif (OPT_BUILD_HACKRF_SOURCE)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_LIMESDR_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/limesdr_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_LIMESDR_SOURCE)
|
2021-02-13 19:43:29 +00:00
|
|
|
|
2022-01-21 19:22:13 +00:00
|
|
|
if (OPT_BUILD_SDRPP_SERVER_SOURCE)
|
|
|
|
add_subdirectory("source_modules/sdrpp_server_source")
|
|
|
|
endif (OPT_BUILD_SDRPP_SERVER_SOURCE)
|
|
|
|
|
2021-11-08 23:00:13 +00:00
|
|
|
if (OPT_BUILD_RFSPACE_SOURCE)
|
|
|
|
add_subdirectory("source_modules/rfspace_source")
|
|
|
|
endif (OPT_BUILD_RFSPACE_SOURCE)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_RTL_SDR_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/rtl_sdr_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_RTL_SDR_SOURCE)
|
|
|
|
|
|
|
|
if (OPT_BUILD_RTL_TCP_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/rtl_tcp_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_RTL_TCP_SOURCE)
|
|
|
|
|
|
|
|
if (OPT_BUILD_SDRPLAY_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/sdrplay_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_SDRPLAY_SOURCE)
|
|
|
|
|
|
|
|
if (OPT_BUILD_SOAPY_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/soapy_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_SOAPY_SOURCE)
|
|
|
|
|
|
|
|
if (OPT_BUILD_SPYSERVER_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/spyserver_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_SPYSERVER_SOURCE)
|
|
|
|
|
|
|
|
if (OPT_BUILD_PLUTOSDR_SOURCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("source_modules/plutosdr_source")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_PLUTOSDR_SOURCE)
|
|
|
|
|
|
|
|
|
|
|
|
# Sink modules
|
2022-02-13 16:25:23 +00:00
|
|
|
if (OPT_BUILD_ANDROID_AUDIO_SINK)
|
|
|
|
add_subdirectory("sink_modules/android_audio_sink")
|
|
|
|
endif (OPT_BUILD_ANDROID_AUDIO_SINK)
|
|
|
|
|
2020-12-22 13:50:26 +00:00
|
|
|
if (OPT_BUILD_AUDIO_SINK)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("sink_modules/audio_sink")
|
2020-12-22 13:50:26 +00:00
|
|
|
endif (OPT_BUILD_AUDIO_SINK)
|
2020-09-06 13:39:09 +00:00
|
|
|
|
2021-06-29 16:14:26 +00:00
|
|
|
if (OPT_BUILD_PORTAUDIO_SINK)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("sink_modules/portaudio_sink")
|
2021-06-29 16:14:26 +00:00
|
|
|
endif (OPT_BUILD_PORTAUDIO_SINK)
|
|
|
|
|
2021-07-30 19:56:34 +00:00
|
|
|
if (OPT_BUILD_NETWORK_SINK)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("sink_modules/network_sink")
|
2021-07-30 19:56:34 +00:00
|
|
|
endif (OPT_BUILD_NETWORK_SINK)
|
|
|
|
|
2021-07-17 17:43:44 +00:00
|
|
|
if (OPT_BUILD_NEW_PORTAUDIO_SINK)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("sink_modules/new_portaudio_sink")
|
2021-07-17 17:43:44 +00:00
|
|
|
endif (OPT_BUILD_NEW_PORTAUDIO_SINK)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
|
|
|
|
# Decoders
|
2021-03-21 18:51:38 +00:00
|
|
|
if (OPT_BUILD_FALCON9_DECODER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("decoder_modules/falcon9_decoder")
|
2021-03-21 18:51:38 +00:00
|
|
|
endif (OPT_BUILD_FALCON9_DECODER)
|
|
|
|
|
2022-02-24 19:49:53 +00:00
|
|
|
if (OPT_BUILD_KG_SSTV_DECODER)
|
|
|
|
add_subdirectory("decoder_modules/kg_sstv_decoder")
|
|
|
|
endif (OPT_BUILD_KG_SSTV_DECODER)
|
|
|
|
|
2021-09-27 01:42:26 +00:00
|
|
|
if (OPT_BUILD_M17_DECODER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("decoder_modules/m17_decoder")
|
2021-09-27 01:42:26 +00:00
|
|
|
endif (OPT_BUILD_M17_DECODER)
|
|
|
|
|
2021-04-01 14:54:16 +00:00
|
|
|
if (OPT_BUILD_METEOR_DEMODULATOR)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("decoder_modules/meteor_demodulator")
|
2021-04-01 14:54:16 +00:00
|
|
|
endif (OPT_BUILD_METEOR_DEMODULATOR)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_RADIO)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("decoder_modules/radio")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_RADIO)
|
|
|
|
|
2021-04-10 01:06:51 +00:00
|
|
|
if (OPT_BUILD_WEATHER_SAT_DECODER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("decoder_modules/weather_sat_decoder")
|
2021-04-10 01:06:51 +00:00
|
|
|
endif (OPT_BUILD_WEATHER_SAT_DECODER)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
|
|
|
|
# Misc
|
2021-04-20 00:58:47 +00:00
|
|
|
if (OPT_BUILD_DISCORD_PRESENCE)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("misc_modules/discord_integration")
|
2021-04-20 00:58:47 +00:00
|
|
|
endif (OPT_BUILD_DISCORD_PRESENCE)
|
|
|
|
|
2021-05-12 04:03:31 +00:00
|
|
|
if (OPT_BUILD_FREQUENCY_MANAGER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("misc_modules/frequency_manager")
|
2021-05-12 04:03:31 +00:00
|
|
|
endif (OPT_BUILD_FREQUENCY_MANAGER)
|
|
|
|
|
2021-06-28 00:22:51 +00:00
|
|
|
if (OPT_BUILD_RECORDER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("misc_modules/recorder")
|
2021-06-28 00:22:51 +00:00
|
|
|
endif (OPT_BUILD_RECORDER)
|
|
|
|
|
2022-09-28 13:55:50 +00:00
|
|
|
if (OPT_BUILD_RIGCTL_CLIENT)
|
|
|
|
add_subdirectory("misc_modules/rigctl_client")
|
|
|
|
endif (OPT_BUILD_RIGCTL_CLIENT)
|
|
|
|
|
2021-07-15 23:49:33 +00:00
|
|
|
if (OPT_BUILD_RIGCTL_SERVER)
|
2021-10-03 14:50:36 +00:00
|
|
|
add_subdirectory("misc_modules/rigctl_server")
|
2021-07-15 23:49:33 +00:00
|
|
|
endif (OPT_BUILD_RIGCTL_SERVER)
|
|
|
|
|
2021-11-11 16:09:37 +00:00
|
|
|
if (OPT_BUILD_SCANNER)
|
|
|
|
add_subdirectory("misc_modules/scanner")
|
|
|
|
endif (OPT_BUILD_SCANNER)
|
|
|
|
|
2021-11-14 17:30:58 +00:00
|
|
|
if (OPT_BUILD_SCHEDULER)
|
|
|
|
add_subdirectory("misc_modules/scheduler")
|
|
|
|
endif (OPT_BUILD_SCHEDULER)
|
|
|
|
|
2021-10-04 02:00:06 +00:00
|
|
|
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
|
|
|
|
target_link_libraries(sdrpp PRIVATE sdrpp_core)
|
|
|
|
|
2022-06-23 20:25:39 +00:00
|
|
|
# Compiler arguments for each platform
|
|
|
|
if (MSVC)
|
|
|
|
target_compile_options(sdrpp PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
|
|
|
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
target_compile_options(sdrpp PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
|
|
|
else ()
|
|
|
|
target_compile_options(sdrpp PRIVATE -O3 -std=c++17)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
2020-09-19 10:48:34 +00:00
|
|
|
# Copy dynamic libs over
|
2020-08-16 01:39:05 +00:00
|
|
|
if (MSVC)
|
2020-09-19 10:48:34 +00:00
|
|
|
add_custom_target(do_always ALL xcopy /s \"$<TARGET_FILE_DIR:sdrpp_core>\\*.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
|
2020-10-23 09:06:10 +00:00
|
|
|
add_custom_target(do_always_volk ALL xcopy /s \"C:/Program Files/PothosSDR/bin\\volk.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
|
2021-04-18 17:12:07 +00:00
|
|
|
endif ()
|
2020-07-19 13:59:44 +00:00
|
|
|
|
2022-06-23 20:25:39 +00:00
|
|
|
|
2020-10-24 15:09:25 +00:00
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
2020-10-24 15:34:18 +00:00
|
|
|
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
2020-10-24 15:09:25 +00:00
|
|
|
endif ()
|
|
|
|
|
2021-02-17 15:59:30 +00:00
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
target_link_libraries(sdrpp PUBLIC pthread)
|
|
|
|
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
|
|
|
endif ()
|
|
|
|
|
2020-10-22 00:28:43 +00:00
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2020-10-24 15:34:18 +00:00
|
|
|
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
2020-10-22 00:28:43 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2020-10-24 15:34:18 +00:00
|
|
|
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.dylib\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
2020-10-22 00:28:43 +00:00
|
|
|
endif ()
|
|
|
|
|
2021-11-14 17:30:58 +00:00
|
|
|
# cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake" -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_SCANNER=ON -DOPT_BUILD_SCHEDULER=ON
|
2021-02-11 21:49:33 +00:00
|
|
|
|
|
|
|
# Install directives
|
|
|
|
install(TARGETS sdrpp DESTINATION bin)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/bandplans DESTINATION share/sdrpp)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/colormaps DESTINATION share/sdrpp)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/fonts DESTINATION share/sdrpp)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/icons DESTINATION share/sdrpp)
|
2021-06-24 01:23:30 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/themes DESTINATION share/sdrpp)
|
2021-02-11 23:03:30 +00:00
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/sdrpp.desktop ${CMAKE_CURRENT_BINARY_DIR}/sdrpp.desktop @ONLY)
|
2021-04-18 18:30:21 +00:00
|
|
|
|
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2021-10-29 00:17:53 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdrpp.desktop DESTINATION share/applications)
|
2021-04-18 18:30:21 +00:00
|
|
|
endif ()
|
2021-02-11 21:49:33 +00:00
|
|
|
|
|
|
|
# Create uninstall target
|
2021-02-11 23:03:30 +00:00
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/cmake_uninstall.cmake ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake @ONLY)
|
2021-10-03 20:11:03 +00:00
|
|
|
add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|