Add Vulkan RHI minimal backend path
This commit is contained in:
@@ -6,6 +6,7 @@ find_package(GTest REQUIRED)
|
||||
|
||||
set(TEST_SOURCES
|
||||
fixtures/RHITestFixture.cpp
|
||||
test_factory.cpp
|
||||
test_device.cpp
|
||||
test_buffer.cpp
|
||||
test_texture.cpp
|
||||
@@ -30,7 +31,10 @@ set(TEST_SOURCES
|
||||
|
||||
add_executable(rhi_unit_tests ${TEST_SOURCES})
|
||||
|
||||
target_compile_definitions(rhi_unit_tests PRIVATE XCENGINE_SUPPORT_OPENGL)
|
||||
target_compile_definitions(rhi_unit_tests PRIVATE
|
||||
XCENGINE_SUPPORT_OPENGL
|
||||
XCENGINE_SUPPORT_VULKAN
|
||||
)
|
||||
|
||||
target_link_libraries(rhi_unit_tests PRIVATE
|
||||
d3d12
|
||||
@@ -42,6 +46,10 @@ target_link_libraries(rhi_unit_tests PRIVATE
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
if(TARGET Vulkan::Vulkan)
|
||||
target_link_libraries(rhi_unit_tests PRIVATE Vulkan::Vulkan)
|
||||
endif()
|
||||
|
||||
target_include_directories(rhi_unit_tests PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fixtures
|
||||
${PROJECT_ROOT_DIR}/engine/include
|
||||
|
||||
Reference in New Issue
Block a user