Added discord-rpc to build process

This commit is contained in:
Starman0620 2021-04-19 21:19:16 -04:00
parent c9a44d1ecf
commit dc65ff3a05
3 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,7 @@ option(OPT_BUILD_AUDIO_SINK "Build Audio Sink Module (Depedencies: rtaudio)" ON)
option(OPT_BUILD_FALCON9_DECODER "Build the falcon9 live decoder (Dependencies: ffplay)" OFF)
option(OPT_BUILD_METEOR_DEMODULATOR "Build the meteor demodulator module (no dependencies required)" ON)
option(OPT_BUILD_WEATHER_SAT_DECODER "Build the HRPT decoder module (no dependencies required)" ON)
option(OPT_BUILD_DISCORD_PRESENCE "Build the Discord Rich Presence module" ON)
option(OPT_BUILD_DISCORD_PRESENCE "Build the Discord Rich Presence module (Dependencies: rapidjson)" ON)
# Core of SDR++
add_subdirectory("core")

View File

@ -11,7 +11,9 @@ endif ()
file(GLOB SRC "src/*.cpp")
include_directories("src/")
include_directories("src/" "discord-rpc/include")
add_subdirectory("discord-rpc")
add_library(discord SHARED ${SRC})
target_link_libraries(discord PRIVATE sdrpp_core)

View File

@ -5,6 +5,8 @@
#include <gui/style.h>
#include <core.h>
#include <discord_rpc.h>
SDRPP_MOD_INFO {
/* Name: */ "discord",
/* Description: */ "Discord Rich Presence module for SDR++",