minecraft-pi-reborn/media-layer/CMakeLists.txt
TheBrokenRail 03c7c50d48
Some checks failed
CI / Build (AMD64, Server) (push) Failing after 7m39s
CI / Build (AMD64, Client) (push) Failing after 11m40s
CI / Build (ARM64, Server) (push) Failing after 8m50s
CI / Build (ARM64, Client) (push) Failing after 13m21s
CI / Build (ARMHF, Client) (push) Has been cancelled
CI / Build (ARMHF, Server) (push) Has been cancelled
CI / Test (Client) (push) Has been cancelled
CI / Test (Server) (push) Has been cancelled
CI / Build Example Mods (push) Has been cancelled
CI / Release (push) Has been cancelled
Trampoline
2024-05-11 21:14:14 -04:00

40 lines
1019 B
CMake

project(media-layer)
# Add Headers
add_library(media-layer-headers INTERFACE)
target_include_directories(
media-layer-headers
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${MCPI_SDK_INCLUDE_DIR}/media-layer>"
)
# SDK
if(BUILD_ARM_COMPONENTS)
install(TARGETS media-layer-headers EXPORT sdk DESTINATION "${MCPI_SDK_LIB_DIR}")
# Copy Headers
set(GLES_HEADERS "include/GLES")
install(
DIRECTORY "include/"
DESTINATION "${MCPI_SDK_INCLUDE_DIR}/media-layer"
PATTERN "${GLES_HEADERS}" EXCLUDE
)
get_filename_component(GLES_HEADERS "${GLES_HEADERS}" REALPATH)
install(
DIRECTORY "${GLES_HEADERS}/"
DESTINATION "${MCPI_SDK_INCLUDE_DIR}/media-layer/GLES"
)
endif()
# Add Extras
add_subdirectory(extras)
# Add Core
if(BUILD_MEDIA_LAYER_CORE)
add_subdirectory(core)
endif()
# Add Trampoline
if(MCPI_USE_MEDIA_LAYER_TRAMPOLINE OR BUILD_ARM_COMPONENTS)
add_subdirectory(trampoline)
endif()