Better build process on Windows

This commit is contained in:
Stéphane Lepin 2016-11-22 22:02:46 +01:00
parent d091d9c3e4
commit 94576fae44
2 changed files with 5 additions and 2 deletions

View File

@ -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}/$<CONFIG>")
endif()
if(UNIX)

View File

@ -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 :
```