discord-rpc/src/CMakeLists.txt

15 lines
598 B
Text
Raw Normal View History

include_directories(${PROJECT_SOURCE_DIR}/include)
2017-07-01 00:18:54 +01:00
set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp yolojson.h connection.h)
if(WIN32)
2017-07-13 16:41:28 +01:00
add_library(discord-rpc-simple STATIC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc-simple.cpp)
add_library(discord-rpc-sync STATIC ${BASE_RPC_SRC} connection_win_sync.cpp)
2017-07-13 16:32:08 +01:00
target_include_directories(discord-rpc-sync PRIVATE ${RAPIDJSON}/include)
add_library(discord-rpc STATIC ${BASE_RPC_SRC} connection_win.cpp)
2017-07-13 16:32:08 +01:00
target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include)
2017-07-01 00:18:54 +01:00
endif(WIN32)
2017-07-13 16:32:08 +01:00