CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/ext/discord-rpc-build/CMakeLists.txt
Views: 1401
1
cmake_minimum_required (VERSION 3.2.0)
2
project (DiscordRPC)
3
4
set(SRC_DIR ../discord-rpc/src)
5
6
7
# format
8
set(ALL_SOURCE_FILES
9
${SRC_DIR}/backoff.h
10
${SRC_DIR}/connection.h
11
${SRC_DIR}/msg_queue.h
12
${SRC_DIR}/rpc_connection.h
13
${SRC_DIR}/serialization.h
14
${SRC_DIR}/discord_rpc.cpp
15
${SRC_DIR}/rpc_connection.cpp
16
${SRC_DIR}/serialization.cpp
17
)
18
19
if(APPLE)
20
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES}
21
${SRC_DIR}/discord_register_osx.m
22
)
23
endif()
24
25
if(WIN32)
26
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_win.cpp)
27
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_win.cpp)
28
else()
29
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_unix.cpp)
30
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_linux.cpp)
31
endif()
32
33
add_library(discord-rpc STATIC ${ALL_SOURCE_FILES})
34
35
target_include_directories(discord-rpc PUBLIC ../discord-rpc/src ../discord-rpc/include ../rapidjson/include)
36
37