Skip to content

Commit 07089fd

Browse files
committed
CMake: Include simde option
1 parent df60b1e commit 07089fd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/scripts/.build.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ ${_usage_host:-}"
243243
-DQT_VERSION=${QT_VERSION:-6}
244244
-DCMAKE_BUILD_TYPE=${config}
245245
-DCMAKE_INSTALL_PREFIX=/usr
246+
-DINCLUDE_SIMDE=ON
246247
)
247248
248249
local cmake_version

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ project(${_name} VERSION ${_version})
77

88
option(ENABLE_FRONTEND_API "Use obs-frontend-api for UI functionality" ON)
99
option(ENABLE_QT "Use Qt functionality" ON)
10+
option(INCLUDE_SIMDE "Include simde" OFF)
1011

1112
include(compilerconfig)
1213
include(defaults)
@@ -15,6 +16,17 @@ include(helpers)
1516
add_library(${CMAKE_PROJECT_NAME} MODULE)
1617
add_subdirectory(deps)
1718

19+
if (INCLUDE_SIMDE)
20+
include(FetchContent)
21+
FetchContent_Declare(
22+
simde
23+
GIT_REPOSITORY https://github.com/simd-everywhere/simde.git
24+
GIT_TAG v0.8.2
25+
)
26+
FetchContent_MakeAvailable(simde)
27+
include_directories(${simde_SOURCE_DIR})
28+
endif()
29+
1830
if (WIN32 OR WIN64)
1931

2032
# Enable Multicore Builds and disable FH4 (to not depend on VCRUNTIME140_1.DLL when building with VS2019)

0 commit comments

Comments
 (0)