style: apply cmake-format to all cmake files
This commit is contained in:
parent
2612a19f3c
commit
4b5d380a0e
10 changed files with 42 additions and 96 deletions
|
|
@ -7,20 +7,20 @@ add_subdirectory(./time)
|
|||
add_subdirectory(./logger)
|
||||
add_subdirectory(./debug)
|
||||
add_subdirectory(./math)
|
||||
#
|
||||
#
|
||||
add_subdirectory(./asset_baker)
|
||||
add_subdirectory(./assets)
|
||||
#
|
||||
#
|
||||
add_subdirectory(./camera)
|
||||
add_subdirectory(./input)
|
||||
# add_subdirectory(./ui)
|
||||
#
|
||||
#
|
||||
add_subdirectory(./surface)
|
||||
add_subdirectory(./renderer)
|
||||
add_subdirectory(./ecs)
|
||||
#
|
||||
#
|
||||
add_subdirectory(./app)
|
||||
|
||||
# apps
|
||||
# apps
|
||||
add_subdirectory(./mirror)
|
||||
add_subdirectory(test)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
add_library_module(app application.cpp)
|
||||
target_link_libraries(app PUBLIC memory PRIVATE lt_debug)
|
||||
target_link_libraries(
|
||||
app
|
||||
PUBLIC memory
|
||||
PRIVATE lt_debug)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,6 @@
|
|||
add_library_module(libasset_baker
|
||||
bakers.cpp
|
||||
)
|
||||
target_link_libraries(libasset_baker
|
||||
PUBLIC
|
||||
assets
|
||||
logger
|
||||
lt_debug
|
||||
tbb
|
||||
)
|
||||
add_test_module(libasset_baker
|
||||
bakers.test.cpp
|
||||
)
|
||||
add_library_module(libasset_baker bakers.cpp)
|
||||
target_link_libraries(libasset_baker PUBLIC assets logger lt_debug tbb)
|
||||
add_test_module(libasset_baker bakers.test.cpp)
|
||||
|
||||
add_executable_module(asset_baker
|
||||
entrypoint/baker.cpp
|
||||
)
|
||||
add_executable_module(asset_baker entrypoint/baker.cpp)
|
||||
target_link_libraries(asset_baker PRIVATE libasset_baker)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
add_library_module(assets
|
||||
shader.cpp
|
||||
)
|
||||
add_library_module(assets shader.cpp)
|
||||
|
||||
target_link_libraries(
|
||||
assets
|
||||
PUBLIC
|
||||
logger
|
||||
lt_debug
|
||||
)
|
||||
target_link_libraries(assets PUBLIC logger lt_debug)
|
||||
|
||||
add_test_module(assets
|
||||
shader.test.cpp
|
||||
)
|
||||
add_test_module(assets shader.test.cpp)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
add_library_module(lt_debug instrumentor.cpp)
|
||||
target_link_libraries(lt_debug PUBLIC logger)
|
||||
target_precompile_headers(lt_debug PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/private/pch.hpp)
|
||||
target_precompile_headers(lt_debug PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/private/pch.hpp)
|
||||
|
|
|
|||
|
|
@ -1,21 +1,9 @@
|
|||
add_library_module(libmirror
|
||||
)
|
||||
target_link_libraries(
|
||||
libmirror
|
||||
INTERFACE
|
||||
app
|
||||
time
|
||||
input
|
||||
surface
|
||||
renderer
|
||||
)
|
||||
add_library_module(libmirror)
|
||||
target_link_libraries(libmirror INTERFACE app time input surface renderer)
|
||||
|
||||
add_test_module(libmirror
|
||||
layers/editor_layer.test.cpp
|
||||
panels/asset_browser.test.cpp
|
||||
panels/properties.test.cpp
|
||||
panels/scene_hierarchy.test.cpp
|
||||
)
|
||||
add_test_module(
|
||||
libmirror layers/editor_layer.test.cpp panels/asset_browser.test.cpp
|
||||
panels/properties.test.cpp panels/scene_hierarchy.test.cpp)
|
||||
|
||||
add_executable_module(mirror entrypoint/mirror.cpp)
|
||||
target_link_libraries(mirror PRIVATE libmirror input)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
add_library_module(renderer
|
||||
add_library_module(
|
||||
renderer
|
||||
system.cpp
|
||||
|
||||
# Vulkan - backend
|
||||
backend/vk/messenger.cpp
|
||||
backend/vk/context/device.cpp
|
||||
|
|
@ -18,27 +18,17 @@ add_library_module(renderer
|
|||
frontend/context/surface.cpp
|
||||
frontend/context/swapchain.cpp
|
||||
frontend/renderer/renderer.cpp
|
||||
frontend/renderer/pass.cpp
|
||||
)
|
||||
frontend/renderer/pass.cpp)
|
||||
|
||||
target_link_libraries(renderer
|
||||
PUBLIC
|
||||
app
|
||||
ecs
|
||||
memory
|
||||
assets
|
||||
time
|
||||
bitwise
|
||||
PRIVATE
|
||||
surface
|
||||
pthread
|
||||
)
|
||||
target_link_libraries(
|
||||
renderer
|
||||
PUBLIC app ecs memory assets time bitwise
|
||||
PRIVATE surface pthread)
|
||||
|
||||
add_test_module(renderer
|
||||
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
|
||||
|
|
@ -46,17 +36,9 @@ add_test_module(renderer
|
|||
frontend/context/swapchain.test.cpp
|
||||
frontend/renderer/pass.test.cpp
|
||||
frontend/renderer/renderer.test.cpp
|
||||
|
||||
# backend specific tests -- vk
|
||||
backend/vk/context/instance.test.cpp
|
||||
|
||||
# backend specific tests -- dx
|
||||
|
||||
# backend specific tests -- mt
|
||||
)
|
||||
|
||||
target_link_libraries(renderer_tests
|
||||
PRIVATE
|
||||
surface
|
||||
pthread
|
||||
# backend specific tests -- dx backend specific tests -- mt
|
||||
)
|
||||
|
||||
target_link_libraries(renderer_tests PRIVATE surface pthread)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
add_library(std INTERFACE)
|
||||
target_precompile_headers(std INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/public/pch.hpp)
|
||||
target_precompile_headers(std INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/public/pch.hpp)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
if (NOT WIN32)
|
||||
if(NOT WIN32)
|
||||
add_library_module(surface linux/system.cpp)
|
||||
target_link_libraries(surface PRIVATE X11)
|
||||
|
||||
|
|
@ -7,17 +7,10 @@ else(WIN32)
|
|||
|
||||
endif()
|
||||
|
||||
target_link_libraries(surface PUBLIC
|
||||
ecs
|
||||
app
|
||||
math
|
||||
memory
|
||||
tbb
|
||||
PRIVATE
|
||||
logger
|
||||
lt_debug
|
||||
time
|
||||
)
|
||||
target_link_libraries(
|
||||
surface
|
||||
PUBLIC ecs app math memory tbb
|
||||
PRIVATE logger lt_debug time)
|
||||
|
||||
add_test_module(surface system.test.cpp)
|
||||
add_fuzz_module(surface system.fuzz.cpp)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
add_library_module(time timer.cpp)
|
||||
target_link_libraries(time PUBLIC tbb)
|
||||
add_test_module(time timer.test.cpp)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue