Dawn/lib/CMakeLists.txt
2024-06-24 08:45:12 -05:00

32 lines
770 B
CMake

# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# GLFW/GLAD
if(DAWN_BUILD_SYSTEM STREQUAL "linux")
add_subdirectory(glad)
add_subdirectory(glfw)
add_subdirectory(libarchive)
add_subdirectory(glm)
set(LIBTYPE "STATIC")
add_subdirectory(openal-soft)
set(BUILD_TESTS OFF CACHE BOOL "Build tests" FORCE)
set(BUILD_EXAMPLES OFF CACHE BOOL "Build examples" FORCE)
add_subdirectory(AudioFile)
add_subdirectory(freetype)
add_subdirectory(boxer)
target_compile_definitions(Boxer PRIVATE UNICODE)
elseif(DAWN_BUILD_SYSTEM STREQUAL "vita")
add_subdirectory(glm)
elseif(DAWN_BUILD_SYSTEM STREQUAL "psp")
add_subdirectory(glm)
endif()