Dawn/lib/CMakeLists.txt

31 lines
597 B
CMake

# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# GLFW
if(DAWN_TARGET_GLFW)
add_subdirectory(glad)
add_subdirectory(glfw)
endif()
# SDL
if(DAWN_TARGET_SDL2)
add_subdirectory(glad)
add_subdirectory(SDL)
endif()
# GLM
add_subdirectory(glm)
# STB
add_library(stb INTERFACE)
target_include_directories(stb INTERFACE stb)
# OpenAL
set(LIBTYPE "STATIC")
add_subdirectory(openal-soft)
set(BUILD_TESTS OFF CACHE BOOL "Build tests")
set(BUILD_EXAMPLES OFF CACHE BOOL "Build examples")
add_subdirectory(AudioFile)