rpcs3/3rdparty/cubeb/CMakeLists.txt

24 lines
801 B
CMake
Raw Normal View History

# Cubeb
set(BUILD_SHARED_LIBS FALSE CACHE BOOL "Don't build shared libs")
set(BUILD_TESTS FALSE CACHE BOOL "Don't build tests")
set(BUILD_RUST_LIBS FALSE CACHE BOOL "Don't build rust libs")
set(BUILD_TOOLS FALSE CACHE BOOL "Don't build tools")
2022-01-05 05:44:15 +00:00
set(BUNDLE_SPEEX TRUE CACHE BOOL "Bundle the speex library")
set(LAZY_LOAD_LIBS TRUE CACHE BOOL "Lazily load shared libraries")
set(USE_SANITIZERS FALSE CACHE BOOL "Dont't use sanitizers")
add_subdirectory(cubeb EXCLUDE_FROM_ALL)
add_library(3rdparty::cubeb ALIAS cubeb)
2022-01-05 05:44:15 +00:00
2022-05-04 12:51:58 +00:00
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM|aarch64|AArch64|Aarch64)")
2022-01-05 05:44:15 +00:00
target_compile_definitions(speex PUBLIC
2022-05-04 12:51:58 +00:00
#_USE_NEON
2022-01-05 05:44:15 +00:00
)
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86|X86|amd64|AMD64|em64t|EM64T)")
target_compile_definitions(speex PUBLIC
_USE_SSE
_USE_SSE2
)
endif ()