Better build process

This commit is contained in:
Stéphane Lepin 2016-11-11 18:11:17 +01:00
parent 4983ef6ddb
commit 1faccf8ee3
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "deps/mbedtls"]
path = deps/mbedtls
url = https://github.com/ARMmbed/mbedtls

View File

@ -10,11 +10,17 @@ find_package(LibObs REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5WebSockets REQUIRED)
set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library")
if(OBS_FRONTEND_LIB EQUAL "OBS_FRONTEND_LIB-NOTFOUND")
message(FATAL_ERROR "Could not find OBS Frontend API\'s library !")
endif()
set(obs-websocket_SOURCES
obs-websocket.cpp
WSServer.cpp
WSRequestHandler.cpp
WSEvents.cpp
Config.cpp
Utils.cpp)
set(obs-websocket_HEADERS
@ -22,6 +28,7 @@ set(obs-websocket_HEADERS
WSServer.h
WSRequestHandler.h
WSEvents.h
Config.h
Utils.h)
add_library(obs-websocket MODULE

1
deps/mbedtls vendored Submodule

@ -0,0 +1 @@
Subproject commit ea67eeb4e8e6cdbaa8770935a848b11d231217bb