From dc65ff3a05ce291521b8c0c8571e05bc844e00dc Mon Sep 17 00:00:00 2001 From: Starman0620 <28871190+Starman0620@users.noreply.github.com> Date: Mon, 19 Apr 2021 21:19:16 -0400 Subject: [PATCH] Added discord-rpc to build process --- CMakeLists.txt | 2 +- discord/CMakeLists.txt | 4 +++- discord/src/main.cpp | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b8a28be..21a166d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/discord/CMakeLists.txt b/discord/CMakeLists.txt index e7ebc097..7d9f5668 100644 --- a/discord/CMakeLists.txt +++ b/discord/CMakeLists.txt @@ -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) diff --git a/discord/src/main.cpp b/discord/src/main.cpp index e490c119..681a7e67 100644 --- a/discord/src/main.cpp +++ b/discord/src/main.cpp @@ -5,6 +5,8 @@ #include #include +#include + SDRPP_MOD_INFO { /* Name: */ "discord", /* Description: */ "Discord Rich Presence module for SDR++",