39 lines
830 B
CMake
Raw Normal View History

2021-06-17 17:32:24 -04:00
project(media-layer-core)
2024-11-19 19:57:43 -05:00
# Build
add_library(media-layer-core-real SHARED
2024-06-15 08:52:15 -04:00
src/base.cpp
2024-11-18 01:56:11 -05: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 08:52:15 -04:00
src/audio/api.cpp
2024-11-17 22:48:25 -05:00
src/audio/engine.cpp
2024-06-15 08:52:15 -04:00
src/audio/file.cpp
)
2021-06-17 17:32:24 -04:00
2024-11-19 19:57:43 -05:00
# Set Name
2023-11-11 00:44:26 -05:00
set_target_properties(media-layer-core-real PROPERTIES OUTPUT_NAME "media-layer-core")
if(BUILD_NATIVE_COMPONENTS)
add_library(media-layer-core ALIAS media-layer-core-real)
endif()
2024-11-19 19:57:43 -05:00
2023-11-11 00:44:26 -05:00
# Install
2024-11-19 19:57:43 -05:00
setup_library(media-layer-core-real TRUE FALSE)
2021-06-17 17:32:24 -04:00
2022-07-02 18:14:23 -04:00
# Link
2024-06-15 08:52:15 -04:00
find_library(OPENAL_LIBRARY NAMES openal REQUIRED)
target_link_libraries(media-layer-core-real
2024-11-15 15:26:33 -05:00
PUBLIC
media-layer-headers
reborn-util
dl
PRIVATE
"${OPENAL_LIBRARY}"
m
glfw
LIB_LIEF
2024-06-15 08:52:15 -04:00
)