overte-Armored-Dragon/cmake/macros/TargetDiscordRPC.cmake
Julian Groß 77c24ed7c3 Initial version of Discord rich presence support.
Co-authored-by: Maki <mxmcube@gmail.com>
Co-authored-by: Dale Glass <dale@daleglass.net>
2023-10-30 19:03:49 +01:00

6 lines
333 B
CMake

macro(TARGET_DISCORD_RPC)
find_library(DISCORD_RPC_LIBRARY_RELEASE discord-rpc PATHS ${VCPKG_INSTALL_ROOT}/lib)
find_library(DISCORD_RPC_LIBRARY_DEBUG discord-rpc PATHS ${VCPKG_INSTALL_ROOT}/debug/lib)
select_library_configurations(DISCORD_RPC)
target_link_libraries(${TARGET_NAME} ${DISCORD_RPC_LIBRARY})
endmacro()