2021-06-17 21:32:24 +00:00
|
|
|
project(media-layer-core)
|
|
|
|
|
2024-11-20 00:57:43 +00:00
|
|
|
# Build
|
2024-11-23 03:02:55 +00:00
|
|
|
add_library(media-layer-core SHARED
|
2024-06-15 12:52:15 +00:00
|
|
|
src/base.cpp
|
2024-11-18 06:56:11 +00:00
|
|
|
src/window/media.cpp
|
|
|
|
src/window/cursor.cpp
|
|
|
|
src/window/util.cpp
|
|
|
|
src/window/events.cpp
|
|
|
|
src/window/offscreen.cpp
|
|
|
|
src/window/gles.cpp
|
2024-06-15 12:52:15 +00:00
|
|
|
src/audio/api.cpp
|
2024-11-18 03:48:25 +00:00
|
|
|
src/audio/engine.cpp
|
2024-06-15 12:52:15 +00:00
|
|
|
src/audio/file.cpp
|
|
|
|
)
|
2021-06-17 21:32:24 +00:00
|
|
|
|
2023-11-11 05:44:26 +00:00
|
|
|
# Install
|
2024-11-23 03:02:55 +00:00
|
|
|
setup_library(media-layer-core TRUE TRUE)
|
2021-06-17 21:32:24 +00:00
|
|
|
|
2022-07-02 22:14:23 +00:00
|
|
|
# Link
|
2024-06-15 12:52:15 +00:00
|
|
|
find_library(OPENAL_LIBRARY NAMES openal REQUIRED)
|
2024-11-23 03:02:55 +00:00
|
|
|
target_link_libraries(media-layer-core
|
2024-11-15 20:26:33 +00:00
|
|
|
PUBLIC
|
|
|
|
media-layer-headers
|
|
|
|
reborn-util
|
|
|
|
dl
|
|
|
|
PRIVATE
|
|
|
|
"${OPENAL_LIBRARY}"
|
|
|
|
m
|
|
|
|
glfw
|
|
|
|
LIB_LIEF
|
2024-06-15 12:52:15 +00:00
|
|
|
)
|