Skip to content

Commit

Permalink
refactor: adjusting discord-rpc dependencies to work with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoc7 committed Apr 25, 2024
1 parent 618df6f commit 83fd5a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 83fd5a3

Please sign in to comment.