mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 10:57:56 +08:00
25 lines
1.2 KiB
CMake
25 lines
1.2 KiB
CMake
get_filename_component(_dxc_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(_dxc_root "${_dxc_root}" PATH)
|
|
|
|
set(DIRECTX_DXC_TOOL "${_dxc_root}/@tool_path@" CACHE PATH "Location of the dxc tool")
|
|
mark_as_advanced(DIRECTX_DXC_TOOL)
|
|
|
|
add_library(Microsoft::DirectXShaderCompiler SHARED IMPORTED)
|
|
set_target_properties(Microsoft::DirectXShaderCompiler PROPERTIES
|
|
IMPORTED_LOCATION "${_dxc_root}/@dll_dir@/@dll_name_dxc@"
|
|
IMPORTED_IMPLIB "${_dxc_root}/lib/@lib_name@"
|
|
IMPORTED_SONAME "@lib_name@"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include/directx-dxc"
|
|
INTERFACE_LINK_LIBRARIES "Microsoft::DXIL"
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
|
|
|
add_library(Microsoft::DXIL SHARED IMPORTED)
|
|
set_target_properties(Microsoft::DXIL PROPERTIES
|
|
IMPORTED_LOCATION "${_dxc_root}/@dll_dir@/@dll_name_dxil@"
|
|
IMPORTED_IMPLIB "${_dxc_root}/lib/@lib_name@"
|
|
IMPORTED_SONAME "@lib_name@"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include/directx-dxc"
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
|
|
|
unset(_dxc_root)
|