Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/gfx/CMakeLists.txt

32 lines
799 B
Text
Raw Normal View History

2020-09-22 12:54:08 -04:00
set(CMAKE_FOLDER "${CMAKE_FOLDER}/GFX Backends")
2020-08-11 12:07:21 -04:00
add_library(GFX INTERFACE)
target_include_directories(GFX INTERFACE public)
target_link_libraries(GFX INTERFACE Utility ShaderCompiler)
2020-08-11 12:07:21 -04:00
add_custom_target(GFXInterface SOURCES
public/gfx.hpp
public/gfx_buffer.hpp
public/gfx_pipeline.hpp
public/gfx_commandbuffer.hpp
public/gfx_texture.hpp
public/gfx_framebuffer.hpp
public/gfx_renderpass.hpp
public/gfx_object.hpp
public/gfx_sampler.hpp
public/gfx_context.hpp)
2020-08-11 12:07:21 -04:00
set_target_properties(GFXInterface PROPERTIES CMAKE_FOLDER "GFX")
add_subdirectory(dummy)
if (ENABLE_DX12)
add_subdirectory(dx12)
endif ()
if (ENABLE_METAL)
2020-08-11 12:07:21 -04:00
add_subdirectory(metal)
endif ()
2020-08-11 12:07:21 -04:00
if (ENABLE_VULKAN)
add_subdirectory(vulkan)
endif ()