mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
d9cbb69327
No idea if it compiles on Mac, it does on Linux though, at least for me.
23 lines
485 B
CMake
23 lines
485 B
CMake
include(LibFindMacros)
|
|
|
|
libfind_pkg_check_modules(DISCORDRPC_PKGCONF DISCORDRPC)
|
|
|
|
find_path(DISCORDRPC_INCLUDE_DIR
|
|
NAMES discord_rpc.h
|
|
PATHS
|
|
${DISCORDRPC_PKGCONF_INCLUDE_DIRS}
|
|
"/usr/include"
|
|
"/usr/local/include"
|
|
)
|
|
|
|
find_library(DISCORDRPC_LIBRARY
|
|
NAMES discord-rpc
|
|
PATHS
|
|
${DISCORDRPC_PKGCONF_LIBRARY_DIRS}
|
|
"/usr/lib"
|
|
"/usr/local/lib"
|
|
)
|
|
|
|
set(DISCORDRPC_PROCESS_INCLUDES DISCORDRPC_INCLUDE_DIR)
|
|
set(DISCORDRPC_PROCESS_LIBS DISCORDRPC_LIBRARY)
|
|
libfind_process(DISCORDRPC)
|