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()