2020-08-23 10:45:35 +00:00
|
|
|
include(LibFindMacros)
|
|
|
|
|
|
|
|
libfind_pkg_check_modules(DISCORDRPC_PKGCONF DISCORDRPC)
|
|
|
|
|
|
|
|
find_path(DISCORDRPC_INCLUDE_DIR
|
2020-08-23 20:15:33 +00:00
|
|
|
NAMES discord_rpc.h
|
2020-08-23 10:45:35 +00:00
|
|
|
PATHS
|
|
|
|
${DISCORDRPC_PKGCONF_INCLUDE_DIRS}
|
2020-08-23 20:15:33 +00:00
|
|
|
"/usr/include"
|
|
|
|
"/usr/local/include"
|
2020-08-23 10:45:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
2020-08-23 20:15:33 +00:00
|
|
|
libfind_process(DISCORDRPC)
|