[obs] install into plugin dir

This commit is contained in:
arcnmx 2021-05-31 07:40:39 -07:00 committed by Geoffrey McRae
parent 6058a0e243
commit b657b57016

View File

@ -32,6 +32,23 @@ add_compile_options(
set(EXE_FLAGS "-Wl,--gc-sections")
set(CMAKE_C_STANDARD 11)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(OBS_PLUGIN_DIR 64bit)
else()
set(OBS_PLUGIN_DIR 32bit)
endif()
if(USER_INSTALL)
if(DEFINED ENV{XDG_CONFIG_HOME})
set(OBS_PLUGIN_PREFIX $ENV{XDG_CONFIG_HOME})
else()
set(OBS_PLUGIN_PREFIX $ENV{HOME}/.config)
endif()
set(OBS_PLUGIN_PREFIX ${OBS_PLUGIN_PREFIX}/obs-studio/plugins)
else()
set(OBS_PLUGIN_PREFIX ${CMAKE_INSTALL_DATADIR}/obs/obs-plugins)
endif()
add_definitions(-D ATOMIC_LOCKING)
get_filename_component(PROJECT_TOP "${PROJECT_SOURCE_DIR}/.." ABSOLUTE)
@ -69,4 +86,8 @@ target_link_libraries(looking-glass-obs
lgmp
)
install(TARGETS looking-glass-obs
LIBRARY DESTINATION ${OBS_PLUGIN_PREFIX}/${CMAKE_PROJECT_NAME}/bin/${OBS_PLUGIN_DIR}
)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)