light/modules/renderer/CMakeLists.txt
light7734 ce26fe63e3
Some checks failed
continuous-integration/drone/pr Build is failing
feat: frame constants & camera component
2025-10-26 10:23:55 +03:30

51 lines
1.3 KiB
CMake

add_library_module(
renderer
system.cpp
# Vulkan - backend
backend/vk/messenger.cpp
backend/vk/context/device.cpp
backend/vk/context/gpu.cpp
backend/vk/context/instance.cpp
backend/vk/context/surface.cpp
backend/vk/context/swapchain.cpp
backend/vk/data/buffer.cpp
backend/vk/renderer/pass.cpp
backend/vk/renderer/renderer.cpp
# frontend
frontend/messenger.cpp
frontend/context/device.cpp
frontend/context/gpu.cpp
frontend/context/instance.cpp
frontend/context/surface.cpp
frontend/context/swapchain.cpp
frontend/data/buffer.cpp
frontend/renderer/renderer.cpp
frontend/renderer/pass.cpp)
target_link_libraries(
renderer
PUBLIC app
ecs
memory
assets
time
bitwise
camera
PRIVATE surface pthread)
add_test_module(
renderer
test/utils.cpp
system.test.cpp
# general backend tests through the frontend
frontend/messenger.test.cpp
frontend/context/surface.test.cpp
frontend/context/device.test.cpp
frontend/context/swapchain.test.cpp
frontend/data/buffer.test.cpp
# frontend/renderer/pass.test.cpp
frontend/renderer/renderer.test.cpp
# backend specific tests -- vk
backend/vk/context/instance.test.cpp)
target_link_libraries(renderer_tests PRIVATE surface pthread)