11# This file is part of the FidelityFX SDK.
2- #
2+ #
33# Copyright (C) 2024 Advanced Micro Devices, Inc.
4- #
4+ #
55# Permission is hereby granted, free of charge, to any person obtaining a copy
66# of this software and associated documentation files(the "Software"), to deal
77# in the Software without restriction, including without limitation the rights
88# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell
99# copies of the Software, and to permit persons to whom the Software is
1010# furnished to do so, subject to the following conditions :
11- #
11+ #
1212# The above copyright notice and this permission notice shall be included in
1313# all copies or substantial portions of the Software.
14- #
14+ #
1515# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -50,9 +50,9 @@ include(common)
5050include (sample)
5151
5252# Configuration setup
53- set (CMAKE_GENERATOR_PLATFORM x64)
54-
55- if ( CMAKE_GENERATOR_PLATFORM STREQUAL x64 )
53+ if (CMAKE_GENERATOR_PLATFORM STREQUAL x64 OR
54+ CMAKE_GENERATOR_PLATFORM STREQUAL ARM64 OR
55+ CMAKE_GENERATOR_PLATFORM STREQUAL ARM64EC )
5656 message (STATUS "Creating sample configs ..." )
5757 set (CMAKE_CONFIGURATION_TYPES "" )
5858 if (CAULDRON_DX12)
@@ -61,14 +61,14 @@ if (CMAKE_GENERATOR_PLATFORM STREQUAL x64)
6161 createConfig(DX12 ReleaseDX12 RELEASE)
6262 list (APPEND CMAKE_CONFIGURATION_TYPES "DebugDX12;RelWithDebInfoDX12;ReleaseDX12;" )
6363 endif ()
64-
64+
6565 if (CAULDRON_VK)
6666 createConfig(VK DebugVK DEBUG)
6767 createConfig(VK RelWithDebInfoVK RELWITHDEBINFO)
6868 createConfig(VK ReleaseVK RELEASE)
6969 list (APPEND CMAKE_CONFIGURATION_TYPES "DebugVK;RelWithDebInfoVK;ReleaseVK;" )
7070 endif ()
71-
71+
7272 message (STATUS "Generated with config types: ${CMAKE_CONFIGURATION_TYPES} " )
7373
7474 # Set compile definitions as well
@@ -83,7 +83,7 @@ if (CMAKE_GENERATOR_PLATFORM STREQUAL x64)
8383 )
8484
8585else ()
86- message (FATAL_ERROR "Requested architecture not yet supported!)" )
86+ message (FATAL_ERROR "Requested architecture ${CMAKE_GENERATOR_PLATFORM} not yet supported!)" )
8787endif ()
8888
8989# Ouput exe to bin directory
@@ -102,12 +102,12 @@ endif()
102102add_library (ffx_backend_native STATIC IMPORTED )
103103set_target_properties (ffx_backend_native PROPERTIES
104104 IMPORTED_CONFIGURATIONS "DebugDX12;DebugVK;RelWithDebInfoDX12;RelWithDebInfoVK;ReleaseDX12;ReleaseVK"
105- IMPORTED_LOCATION_DEBUGDX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_x64d .lib"
106- IMPORTED_LOCATION_RELEASEDX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_x64 .lib"
107- IMPORTED_LOCATION_RELWITHDEBINFODX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_x64drel .lib"
108- IMPORTED_LOCATION_DEBUGVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_x64d .lib"
109- IMPORTED_LOCATION_RELEASEVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_x64 .lib"
110- IMPORTED_LOCATION_RELWITHDEBINFOVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_x64drel .lib" )
105+ IMPORTED_LOCATION_DEBUGDX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_ ${CMAKE_GENERATOR_PLATFORM} d .lib"
106+ IMPORTED_LOCATION_RELEASEDX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_ ${CMAKE_GENERATOR_PLATFORM} .lib"
107+ IMPORTED_LOCATION_RELWITHDEBINFODX12 "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_dx12_ ${CMAKE_GENERATOR_PLATFORM} drel .lib"
108+ IMPORTED_LOCATION_DEBUGVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_ ${CMAKE_GENERATOR_PLATFORM} d .lib"
109+ IMPORTED_LOCATION_RELEASEVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_ ${CMAKE_GENERATOR_PLATFORM} .lib"
110+ IMPORTED_LOCATION_RELWITHDEBINFOVK "${SDK_ROOT} /bin/ffx_sdk/ffx_backend_vk_ ${CMAKE_GENERATOR_PLATFORM} drel .lib" )
111111
112112if (FFX_BUILD_AS_DLL)
113113 file (GLOB SDK_DLLS "${SDK_ROOT} /bin/ffx_sdk/*.dll" )
0 commit comments