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)