2024-03-20 13:47:48 -07:00
|
|
|
get_filename_component(_dxc_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
2022-06-03 19:51:49 -07:00
|
|
|
get_filename_component(_dxc_root "${_dxc_root}" PATH)
|
|
|
|
|
2024-03-20 13:47:48 -07: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
|
2024-10-21 22:32:08 +00:00
|
|
|
IMPORTED_LOCATION "${_dxc_root}/@dll_dir@/@dll_name_dxil@"
|
2024-03-20 13:47:48 -07:00
|
|
|
IMPORTED_IMPLIB "${_dxc_root}/lib/@lib_name@"
|
2024-10-21 22:32:08 +00:00
|
|
|
IMPORTED_NO_SONAME TRUE
|
2024-03-20 13:47:48 -07:00
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include/directx-dxc"
|
|
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
2022-06-03 19:51:49 -07:00
|
|
|
|
|
|
|
unset(_dxc_root)
|