win32 only

This commit is contained in:
Chris Marsh 2017-07-13 08:41:28 -07:00
parent 930cd722d5
commit 9e31f96691
2 changed files with 5 additions and 3 deletions

View file

@ -24,6 +24,8 @@ add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
add_subdirectory(src)
add_subdirectory(examples/simple)
add_subdirectory(examples/simpleSync)
if(WIN32)
add_subdirectory(examples/simplest)
endif(WIN32)

View file

@ -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)