From 506db081f35681ddaf9df8039f3163ea2575f84e Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Fri, 30 Sep 2022 13:54:19 +0200 Subject: [PATCH] Expose target name to parent scope as variable Signed-off-by: TheJackiMonster --- src/ffx-fsr2-api/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ffx-fsr2-api/CMakeLists.txt b/src/ffx-fsr2-api/CMakeLists.txt index 1e2bf69..fc48d80 100644 --- a/src/ffx-fsr2-api/CMakeLists.txt +++ b/src/ffx-fsr2-api/CMakeLists.txt @@ -109,14 +109,20 @@ else() add_library(ffx_fsr2_api_${FSR2_PLATFORM_NAME} STATIC ${SOURCES}) endif() +set(FFX_FSR2_API ffx_fsr2_api_${FSR2_PLATFORM_NAME} PARENT_SCOPE) + # graphics api backends if(FFX_FSR2_API_DX12) message("Will build FSR2 library: DX12 backend") add_subdirectory(dx12) + + set(FFX_FSR2_API_DX12 ffx_fsr2_api_dx12_${FSR2_PLATFORM_NAME} PARENT_SCOPE) endif() if(FFX_FSR2_API_VK) message("Will build FSR2 library: Vulkan backend") add_subdirectory(vk) + + set(FFX_FSR2_API_VK ffx_fsr2_api_vk_${FSR2_PLATFORM_NAME} PARENT_SCOPE) endif() # api