mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Clean Up CMake Build System
This commit is contained in:
21
platforms/openal/CMakeLists.txt
Normal file
21
platforms/openal/CMakeLists.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
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 .)
|
||||
Reference in New Issue
Block a user