CMakeLists
CMakeLists
#
# Copyright (C) 2024 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and /or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions :
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# Declare project
project(FFX_API_FSR)
# ---------------------------------------------
# Fidelity FX Api FSR Sample
# ---------------------------------------------
# Link everything
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC Framework RenderModules
d3dcompiler amd_fidelityfx backend_interface_stub)
set_target_properties(${PROJECT_NAME} PROPERTIES
OUTPUT_NAME_DEBUGDX12 "${EXE_OUT_NAME}DX12D"
OUTPUT_NAME_DEBUGVK "${EXE_OUT_NAME}VKD"
OUTPUT_NAME_RELEASEDX12 "${EXE_OUT_NAME}DX12"
OUTPUT_NAME_RELEASEVK "${EXE_OUT_NAME}VK"
OUTPUT_NAME_RELWITHDEBINFODX12 "$
{EXE_OUT_NAME}drelDX12"
OUTPUT_NAME_RELWITHDEBINFOVK "$
{EXE_OUT_NAME}drelVK"
VS_DEBUGGER_WORKING_DIRECTORY "${BIN_OUTPUT}")
# Copy amd_fidelityfx dll to output. Relies on it being built before this project
is configured!
# TODO: remove tech debt from build system....
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${api_dlls} ${BIN_OUTPUT})
ConfigFileName=L"configs/fsrapiconfig.json"
RenderModuleName=FSRApi)