minecraft-pi-reborn/media-layer/CMakeLists.txt

40 lines
1004 B
CMake
Raw Normal View History

2021-06-17 21:32:24 +00:00
project(media-layer)
# Add Headers
add_library(media-layer-headers INTERFACE)
2022-06-25 21:30:08 +00:00
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}")
2023-10-21 20:36:54 +00:00
# Copy Headers
set(GLES_HEADERS "include/GLES")
install(
DIRECTORY "include/"
DESTINATION "${MCPI_SDK_INCLUDE_DIR}/media-layer"
PATTERN "${GLES_HEADERS}" EXCLUDE
)
2023-10-21 23:27:22 +00:00
get_filename_component(GLES_HEADERS "${GLES_HEADERS}" REALPATH)
2023-10-21 20:36:54 +00:00
install(
DIRECTORY "${GLES_HEADERS}/"
DESTINATION "${MCPI_SDK_INCLUDE_DIR}/media-layer/GLES"
)
2022-06-25 21:30:08 +00:00
endif()
2021-06-17 21:32:24 +00:00
2022-07-02 22:14:23 +00:00
# Add Extras
add_subdirectory(extras)
2021-06-17 21:32:24 +00:00
# Add Core
2023-11-11 05:44:26 +00:00
if(BUILD_MEDIA_LAYER_CORE)
2022-07-02 22:14:23 +00:00
add_subdirectory(core)
endif()
2021-06-17 21:32:24 +00:00
# Add Proxy
2023-11-11 05:44:26 +00:00
if(MCPI_USE_MEDIA_LAYER_PROXY OR BUILD_ARM_COMPONENTS)
2021-06-17 21:32:24 +00:00
add_subdirectory(proxy)
endif()