2017-06-30 20:00:45 +01:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
2017-07-01 00:18:54 +01:00
|
|
|
|
2017-07-20 21:24:18 +01:00
|
|
|
set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp rpc_connection.h rpc_connection.cpp serialization.h serialization.cpp connection.h backoff.h)
|
2017-07-01 00:18:54 +01:00
|
|
|
|
|
|
|
if(WIN32)
|
2017-07-11 23:59:14 +01:00
|
|
|
add_library(discord-rpc STATIC ${BASE_RPC_SRC} connection_win.cpp)
|
2017-07-01 00:18:54 +01:00
|
|
|
endif(WIN32)
|
2017-07-13 16:32:08 +01:00
|
|
|
|
2017-07-13 18:08:14 +01:00
|
|
|
if(UNIX)
|
|
|
|
add_library(discord-rpc STATIC ${BASE_RPC_SRC} connection_unix.cpp)
|
|
|
|
endif(UNIX)
|
2017-07-17 17:28:54 +01:00
|
|
|
|
2017-07-18 22:29:54 +01:00
|
|
|
target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include)
|