mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
22 lines
518 B
CMake
22 lines
518 B
CMake
cmake_minimum_required(VERSION 3.16.0)
|
|
project(reminecraftpe-openal)
|
|
|
|
# Build
|
|
add_library(reminecraftpe-openal STATIC
|
|
SoundSystemAL.cpp
|
|
)
|
|
|
|
# Core
|
|
target_link_libraries(reminecraftpe-openal PUBLIC reminecraftpe-core)
|
|
|
|
# OpenAL
|
|
if(EMSCRIPTEN)
|
|
target_link_libraries(reminecraftpe-openal PUBLIC openal)
|
|
else()
|
|
find_library(OPENAL_LIBRARY NAMES openal REQUIRED)
|
|
target_link_libraries(reminecraftpe-openal PUBLIC "${OPENAL_LIBRARY}")
|
|
endif()
|
|
|
|
# Headers
|
|
target_include_directories(reminecraftpe-openal PUBLIC .)
|