summaryrefslogtreecommitdiffstats
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 53dcf1f1a..1261062e8 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -70,3 +70,28 @@ if(ENABLE_CUBEB)
set(BUILD_TESTS OFF CACHE BOOL "")
add_subdirectory(cubeb EXCLUDE_FROM_ALL)
endif()
+
+# DiscordRPC
+if (USE_DISCORD_PRESENCE)
+ add_subdirectory(discord-rpc EXCLUDE_FROM_ALL)
+ target_include_directories(discord-rpc INTERFACE ./discord-rpc/include)
+endif()
+
+if (ENABLE_WEB_SERVICE)
+ # LibreSSL
+ set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")
+ add_subdirectory(libressl EXCLUDE_FROM_ALL)
+ target_include_directories(ssl INTERFACE ./libressl/include)
+ target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP)
+
+ # lurlparser
+ add_subdirectory(lurlparser EXCLUDE_FROM_ALL)
+
+ # httplib
+ add_library(httplib INTERFACE)
+ target_include_directories(httplib INTERFACE ./httplib)
+
+ # JSON
+ add_library(json-headers INTERFACE)
+ target_include_directories(json-headers INTERFACE ./json)
+endif()