From d091d9c3e4a4ea5f51095143f75b6f38b933b8b8 Mon Sep 17 00:00:00 2001 From: Palakis Date: Tue, 22 Nov 2016 19:51:47 +0100 Subject: [PATCH] Better build process on Linux --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4afa112e..3c28dcc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,4 +67,10 @@ if(UNIX) obs-frontend-api) endif() -install_external_plugin_with_data(obs-websocket data) +if(UNIX AND NOT APPLE) + set_target_properties(obs-websocket PROPERTIES PREFIX "") + install(TARGETS obs-websocket + LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins) + install(FILES data/locale/en-US.ini data/locale/fr-FR.ini + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/obs-websocket/locale") +endif()