From 83fd5a3e9fdbffc4cd81f3edc8a88ce7459e7132 Mon Sep 17 00:00:00 2001 From: Eduardo Cordeiro Date: Thu, 25 Apr 2024 20:12:45 -0300 Subject: [PATCH] refactor: adjusting discord-rpc dependencies to work with windows --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1f88f8..d79d0a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,10 @@ set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTOR if(CMAKE_SYSTEM_NAME STREQUAL "Windows") set(DISCORD_RPC_LIB "${CMAKE_CURRENT_SOURCE_DIR}/dependencies/win64-dynamic/lib/discord-rpc.lib") + include_directories("${CMAKE_CURRENT_SOURCE_DIR}/dependencies/win64-dynamic/include") elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(DISCORD_RPC_LIB "${CMAKE_CURRENT_SOURCE_DIR}/dependencies/linux-dynamic/lib/libdiscord-rpc.so") + include_directories("${CMAKE_CURRENT_SOURCE_DIR}/dependencies/linux-dynamic/include") endif() find_package(QtCreator COMPONENTS Core REQUIRED) @@ -55,11 +57,11 @@ add_qtc_plugin(CuteDiscordPresence CuteDiscordPresence.json.in ) -find_package(discord-rpc REQUIRED) +# find_package(discord-rpc REQUIRED) extend_qtc_plugin(CuteDiscordPresence - CONDITION TARGET discord-rpc - DEPENDS discord-rpc + # CONDITION TARGET discord-rpc + # DEPENDS discord-rpc SOURCES cutediscordpresence.cpp cutediscordpresence.h