From 2ef0763493e2ec23581a435c53d01d9463cb9652 Mon Sep 17 00:00:00 2001 From: Andrew Richards Date: Mon, 9 Dec 2024 11:57:41 +0000 Subject: [PATCH] Updated target_include_directories for Sample and Test. --- Applications/Sample/CMakeLists.txt | 2 ++ Applications/Test/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Applications/Sample/CMakeLists.txt b/Applications/Sample/CMakeLists.txt index 10a6bb8d..dd6c8044 100644 --- a/Applications/Sample/CMakeLists.txt +++ b/Applications/Sample/CMakeLists.txt @@ -39,12 +39,14 @@ endif() if(PLATFORM_SUPPORT_D3D12) if(${SAMPLE_API} MATCHES "SAMPLE_USE_D3D12") + target_include_directories(Sample_MT PRIVATE "${CMAKE_SOURCE_DIR}/Platform/DirectX12") target_link_libraries(Sample_MT PRIVATE SimulDirectX12_MT) endif() endif() if(PLATFORM_SUPPORT_VULKAN) if(${SAMPLE_API} MATCHES "SAMPLE_USE_VULKAN") + target_include_directories(Sample_MT PRIVATE "${CMAKE_SOURCE_DIR}/Platform/External/VulkanMemoryAllocator/include") target_link_libraries(Sample_MT PRIVATE SimulVulkan_MT) endif() endif() diff --git a/Applications/Test/CMakeLists.txt b/Applications/Test/CMakeLists.txt index e0762382..f6d0dbd8 100644 --- a/Applications/Test/CMakeLists.txt +++ b/Applications/Test/CMakeLists.txt @@ -27,10 +27,12 @@ if(PLATFORM_SUPPORT_D3D11) endif() if(PLATFORM_SUPPORT_D3D12) + target_include_directories(Test_MT PRIVATE "${CMAKE_SOURCE_DIR}/Platform/DirectX12") target_link_libraries(Test_MT PRIVATE SimulDirectX12_MT) endif() if(PLATFORM_SUPPORT_VULKAN) + target_include_directories(Test_MT PRIVATE "${CMAKE_SOURCE_DIR}/Platform/External/VulkanMemoryAllocator/include") target_include_directories(Test_MT PUBLIC "${Vulkan_INCLUDE_DIR}") target_link_libraries(Test_MT PRIVATE SimulVulkan_MT glfw ${Vulkan_LIBRARY}) endif()