Files
SceneSwitcher/cmake/windows/defaults.cmake
WarmUpTill 62d443819e
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Support OBS 33 plugin layout on Windows
* Generate OBS 32 layout, too, still
* Installer supports both OBS 32 and OBS 33
2026-10-15 19:43:40 +02:00

25 lines
715 B
CMake

# CMake Windows defaults module
include_guard(GLOBAL)
# Enable find_package targets to become globally available targets
set(CMAKE_FIND_PACKAGE_TARGETS_GLOBAL TRUE)
include(buildspec)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX
"$ENV{ALLUSERSPROFILE}/obs-studio/plugins"
CACHE STRING "Default plugin installation directory" FORCE)
endif()
# OBS 33 loads plugins from <name>/<name>.dll instead of <name>/bin/64bit
option(ADVSS_WINDOWS_LEGACY_LAYOUT
"Install using the bin/64bit plugin layout required by OBS 32 and older"
OFF)
if(ADVSS_WINDOWS_LEGACY_LAYOUT)
set(ADVSS_WINDOWS_BIN_SUBDIR "/bin/64bit")
else()
set(ADVSS_WINDOWS_BIN_SUBDIR "")
endif()