mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
25 lines
545 B
CMake
25 lines
545 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/lib64"
|
|
"/usr/local/lib"
|
|
"/usr/local/lib64"
|
|
)
|
|
|
|
set(DISCORDRPC_PROCESS_INCLUDES DISCORDRPC_INCLUDE_DIR)
|
|
set(DISCORDRPC_PROCESS_LIBS DISCORDRPC_LIBRARY)
|
|
libfind_process(DISCORDRPC)
|