diff --git a/CMakeLists.txt b/CMakeLists.txt index 797c1ae53..b190f236e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -842,8 +842,7 @@ if (UNIX AND NOT APPLE) endif() endif() +#Discord RPC if(ENABLE_QT_GUI) - add_subdirectory(externals/discord-rpc) target_link_libraries(shadps4 PRIVATE discord-rpc) - include_directories(externals/discord-rpc/include) endif() \ No newline at end of file diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 5410f37eb..bd244c49f 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -182,4 +182,11 @@ add_subdirectory(tracy) # pugixml if (NOT TARGET pugixml::pugixml) add_subdirectory(pugixml) +endif() + +#Discord RPC +if(ENABLE_QT_GUI) + set(BUILD_EXAMPLES OFF) + add_subdirectory(discord-rpc/) + target_include_directories(discord-rpc INTERFACE discord-rpc/include) endif() \ No newline at end of file