From 9e31f96691370b7d0f45f893aa26d3c4a5697dc1 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Thu, 13 Jul 2017 08:41:28 -0700 Subject: [PATCH] win32 only --- CMakeLists.txt | 4 +++- src/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index efa3d59..3d5b58b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ add_library(rapidjson STATIC IMPORTED ${RAPIDJSON}) add_subdirectory(src) add_subdirectory(examples/simple) add_subdirectory(examples/simpleSync) -add_subdirectory(examples/simplest) +if(WIN32) + add_subdirectory(examples/simplest) +endif(WIN32) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5a3de97..8380d61 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,10 +1,10 @@ include_directories(${PROJECT_SOURCE_DIR}/include) -add_library(discord-rpc-simple STATIC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc-simple.cpp) - set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp yolojson.h connection.h) if(WIN32) + 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) target_include_directories(discord-rpc-sync PRIVATE ${RAPIDJSON}/include)