2024-03-21 04:47:48 +08:00
|
|
|
get_filename_component(_dxc_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
2022-06-04 10:51:49 +08:00
|
|
|
get_filename_component(_dxc_root "${_dxc_root}" PATH)
|
|
|
|
|
2024-03-21 04:47:48 +08:00
|
|
|
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")
|
2022-06-04 10:51:49 +08:00
|
|
|
|
|
|
|
unset(_dxc_root)
|