From 94576fae444dc868c563974466bb0597b931dee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lepin?= Date: Tue, 22 Nov 2016 22:02:46 +0100 Subject: [PATCH] Better build process on Windows --- CMakeLists.txt | 5 +++++ README.md | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c28dcc0..e668f446 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,11 @@ if(WIN32) target_link_libraries(obs-websocket "${OBS_FRONTEND_LIB}") + add_custom_command(TARGET obs-websocket POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E copy + "${QTDIR}/bin/Qt5WebSockets.dll" + "${QTDIR}/bin/Qt5Network.dll" + "${CMAKE_BINARY_DIR}/$") endif() if(UNIX) diff --git a/README.md b/README.md index 99c02ae1..b6fbf80d 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,6 @@ In cmake-gui, you'll have to set the following variables : - **LIBOBS_LIB** (filepath) : location of the obs.lib file - **OBS_FRONTEND_LIB** (filepath) : location of the obs-frontend-api.lib file -After building the obs-websocket binary, copy Qt5Network.dll and Qt5WebSockets.dll from Qt's `bin/` to the folder of the obs-websocket's binary. - ### Linux On Debian/Ubuntu : ```