Skip to content

Commit

Permalink
Updated target_include_directories for Sample and Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Dec 9, 2024
1 parent 1fcb5ef commit 2ef0763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Applications/Sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 2 additions & 0 deletions Applications/Test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2ef0763

Please sign in to comment.