mirror of
https://gitee.com/openharmony/third_party_vulkan-headers
synced 2024-11-23 07:49:47 +00:00
build: Define library targets for nested builds-
Adds alias interface libraries Vulkan::Headers and Vulkan::Registry that export include paths. These are meant to be used by dependent projects in a nested build configuration to obtain the path to the Vulkan headers and registry directories. Change-Id: I0801f4a23ef654064c1b0878543cd48965954756
This commit is contained in:
parent
8e2c4cd554
commit
2ed3359a52
@ -36,6 +36,15 @@ endif()
|
||||
|
||||
# --------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# define exported targets for nested project builds to consume
|
||||
add_library(Vulkan-Headers INTERFACE)
|
||||
target_include_directories(Vulkan-Headers INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
add_library(Vulkan::Headers ALIAS Vulkan-Headers)
|
||||
|
||||
add_library(Vulkan-Registry INTERFACE)
|
||||
target_include_directories(Vulkan-Registry INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/registry")
|
||||
add_library(Vulkan::Registry ALIAS Vulkan-Registry)
|
||||
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user