2023-10-06 00:59:37 +02:00
|
|
|
cmake_minimum_required(VERSION 3.28...3.30)
|
2023-03-26 03:55:25 +02:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCOPE)
|
2023-03-26 03:55:25 +02:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
project(obs-studio VERSION ${OBS_VERSION_CANONICAL})
|
2023-03-26 03:55:25 +02:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
if(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
|
|
|
|
|
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/windows/architecture.cmake")
|
2023-10-06 00:59:37 +02:00
|
|
|
if(NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_VS_PLATFORM_NAME)
|
2024-08-23 21:43:49 +02:00
|
|
|
return()
|
2023-03-26 03:55:25 +02:00
|
|
|
endif()
|
|
|
|
|
endif()
|
2022-03-16 23:13:26 +01:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
include(compilerconfig)
|
|
|
|
|
include(defaults)
|
|
|
|
|
include(helpers)
|
2022-03-16 23:13:26 +01:00
|
|
|
|
|
|
|
|
option(ENABLE_UI "Enable building with UI (requires Qt)" ON)
|
|
|
|
|
option(ENABLE_SCRIPTING "Enable scripting support" ON)
|
2024-08-23 21:43:49 +02:00
|
|
|
option(ENABLE_HEVC "Enable HEVC encoders" ON)
|
2014-01-20 16:58:58 +01:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
add_subdirectory(libobs)
|
2022-03-16 23:13:26 +01:00
|
|
|
if(OS_WINDOWS)
|
|
|
|
|
add_subdirectory(libobs-d3d11)
|
|
|
|
|
add_subdirectory(libobs-winrt)
|
2014-01-20 16:58:58 +01:00
|
|
|
endif()
|
2024-08-23 21:43:49 +02:00
|
|
|
add_subdirectory(libobs-opengl)
|
2022-03-16 23:13:26 +01:00
|
|
|
add_subdirectory(plugins)
|
2014-01-20 16:58:58 +01:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
add_subdirectory(test/test-input)
|
2021-06-23 20:53:35 +02:00
|
|
|
|
2024-12-09 21:42:42 +01:00
|
|
|
add_subdirectory(frontend)
|
2014-04-05 16:32:48 +02:00
|
|
|
|
2024-08-23 21:43:49 +02:00
|
|
|
message_configuration()
|