overte/plugins/CMakeLists.txt
2023-12-07 15:20:03 -08:00

72 lines
1.8 KiB
CMake

#
# Created by Bradley Austin Davis on 2015/10/25
# Copyright 2015 High Fidelity, Inc.
#
# Distributed under the Apache License, Version 2.0.
# See the accompanying file LICENSE or http:#www.apache.org/licenses/LICENSE-2.0.html
#
# add the plugin directories
file(GLOB PLUGIN_SUBDIRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*")
list(REMOVE_ITEM PLUGIN_SUBDIRS "CMakeFiles")
# client-side plugins
if (NOT SERVER_ONLY AND NOT ANDROID)
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
if ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") AND (MSVC_VERSION GREATER 1930))
message(WARNING "Building under ${CMAKE_CXX_COMPILER_ID}, MSVC Version ${MSVC_VERSION}. Oculus plugin unsupported, disabling.")
else()
# Check if we're building on MSVC 2022. If so, Oculus plugin fails to build.
set(DIR "oculus")
add_subdirectory(${DIR})
set(DIR "oculusLegacy")
add_subdirectory(${DIR})
endif()
set(DIR "openvr")
add_subdirectory(${DIR})
endif()
set(DIR "hifiSdl2")
add_subdirectory(${DIR})
if (USE_SIXENSE)
set(DIR "hifiSixense")
add_subdirectory(${DIR})
endif()
set(DIR "hifiSpacemouse")
add_subdirectory(${DIR})
if (USE_NEURON)
set(DIR "hifiNeuron")
add_subdirectory(${DIR})
endif()
set(DIR "hifiKinect")
add_subdirectory(${DIR})
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(DIR "steamClient")
add_subdirectory(${DIR})
endif()
set(DIR "hifiLeapMotion")
add_subdirectory(${DIR})
if (WIN32)
set(DIR "hifiOsc")
add_subdirectory(${DIR})
endif()
endif()
# server-side plugins
set(DIR "pcmCodec")
add_subdirectory(${DIR})
set(DIR "opusCodec")
add_subdirectory(${DIR})
# example plugins
set(DIR "JSAPIExample")
add_subdirectory(${DIR})