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(./logger) | ||||||
| add_subdirectory(./debug) | add_subdirectory(./debug) | ||||||
| add_subdirectory(./math) | add_subdirectory(./math) | ||||||
| #  | # | ||||||
| add_subdirectory(./asset_baker) | add_subdirectory(./asset_baker) | ||||||
| add_subdirectory(./assets) | add_subdirectory(./assets) | ||||||
| #  | # | ||||||
| add_subdirectory(./camera) | add_subdirectory(./camera) | ||||||
| add_subdirectory(./input) | add_subdirectory(./input) | ||||||
| # add_subdirectory(./ui) | # add_subdirectory(./ui) | ||||||
| #  | # | ||||||
| add_subdirectory(./surface) | add_subdirectory(./surface) | ||||||
| add_subdirectory(./renderer) | add_subdirectory(./renderer) | ||||||
| add_subdirectory(./ecs) | add_subdirectory(./ecs) | ||||||
| #  | # | ||||||
| add_subdirectory(./app) | add_subdirectory(./app) | ||||||
| 
 | 
 | ||||||
| # apps  | # apps | ||||||
| add_subdirectory(./mirror) | add_subdirectory(./mirror) | ||||||
| add_subdirectory(test) | add_subdirectory(test) | ||||||
|  |  | ||||||
|  | @ -1,2 +1,5 @@ | ||||||
| add_library_module(app application.cpp) | 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 | add_library_module(libasset_baker bakers.cpp) | ||||||
|     bakers.cpp | target_link_libraries(libasset_baker PUBLIC assets logger lt_debug tbb) | ||||||
| ) | add_test_module(libasset_baker bakers.test.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 | add_executable_module(asset_baker entrypoint/baker.cpp) | ||||||
|     entrypoint/baker.cpp |  | ||||||
| ) |  | ||||||
| target_link_libraries(asset_baker PRIVATE libasset_baker) | target_link_libraries(asset_baker PRIVATE libasset_baker) | ||||||
|  |  | ||||||
|  | @ -1,14 +1,5 @@ | ||||||
| add_library_module(assets  | add_library_module(assets shader.cpp) | ||||||
|     shader.cpp |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| target_link_libraries( | target_link_libraries(assets PUBLIC logger lt_debug) | ||||||
| assets  |  | ||||||
| PUBLIC |  | ||||||
| logger  |  | ||||||
| lt_debug |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| add_test_module(assets | add_test_module(assets shader.test.cpp) | ||||||
|     shader.test.cpp |  | ||||||
| ) |  | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
| add_library_module(lt_debug instrumentor.cpp) | add_library_module(lt_debug instrumentor.cpp) | ||||||
| target_link_libraries(lt_debug PUBLIC logger) | 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  | add_library_module(libmirror) | ||||||
| ) | target_link_libraries(libmirror INTERFACE app time input surface renderer) | ||||||
| target_link_libraries( |  | ||||||
|   libmirror |  | ||||||
|   INTERFACE |  | ||||||
|   app |  | ||||||
|   time |  | ||||||
|   input  |  | ||||||
|   surface |  | ||||||
|   renderer |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| add_test_module(libmirror  | add_test_module( | ||||||
|     layers/editor_layer.test.cpp |     libmirror layers/editor_layer.test.cpp panels/asset_browser.test.cpp | ||||||
|     panels/asset_browser.test.cpp |     panels/properties.test.cpp panels/scene_hierarchy.test.cpp) | ||||||
|     panels/properties.test.cpp |  | ||||||
|     panels/scene_hierarchy.test.cpp |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| add_executable_module(mirror entrypoint/mirror.cpp) | add_executable_module(mirror entrypoint/mirror.cpp) | ||||||
| target_link_libraries(mirror PRIVATE libmirror input) | target_link_libraries(mirror PRIVATE libmirror input) | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| add_library_module(renderer | add_library_module( | ||||||
|  |     renderer | ||||||
|     system.cpp |     system.cpp | ||||||
| 
 |  | ||||||
|     # Vulkan - backend |     # Vulkan - backend | ||||||
|     backend/vk/messenger.cpp |     backend/vk/messenger.cpp | ||||||
|     backend/vk/context/device.cpp |     backend/vk/context/device.cpp | ||||||
|  | @ -18,27 +18,17 @@ add_library_module(renderer | ||||||
|     frontend/context/surface.cpp |     frontend/context/surface.cpp | ||||||
|     frontend/context/swapchain.cpp |     frontend/context/swapchain.cpp | ||||||
|     frontend/renderer/renderer.cpp |     frontend/renderer/renderer.cpp | ||||||
|     frontend/renderer/pass.cpp |     frontend/renderer/pass.cpp) | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| target_link_libraries(renderer | target_link_libraries( | ||||||
| PUBLIC  |     renderer | ||||||
|     app  |     PUBLIC app ecs memory assets time bitwise | ||||||
|     ecs |     PRIVATE surface pthread) | ||||||
|     memory |  | ||||||
|     assets |  | ||||||
|     time |  | ||||||
|     bitwise |  | ||||||
| PRIVATE |  | ||||||
|     surface |  | ||||||
|     pthread |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| add_test_module(renderer  | add_test_module( | ||||||
|  |     renderer | ||||||
|     test/utils.cpp |     test/utils.cpp | ||||||
| 
 |  | ||||||
|     system.test.cpp |     system.test.cpp | ||||||
| 
 |  | ||||||
|     # general backend tests through the frontend |     # general backend tests through the frontend | ||||||
|     frontend/messenger.test.cpp |     frontend/messenger.test.cpp | ||||||
|     frontend/context/surface.test.cpp |     frontend/context/surface.test.cpp | ||||||
|  | @ -46,17 +36,9 @@ add_test_module(renderer | ||||||
|     frontend/context/swapchain.test.cpp |     frontend/context/swapchain.test.cpp | ||||||
|     frontend/renderer/pass.test.cpp |     frontend/renderer/pass.test.cpp | ||||||
|     frontend/renderer/renderer.test.cpp |     frontend/renderer/renderer.test.cpp | ||||||
| 
 |  | ||||||
|     # backend specific tests -- vk |     # backend specific tests -- vk | ||||||
|     backend/vk/context/instance.test.cpp |     backend/vk/context/instance.test.cpp | ||||||
| 
 |     # backend specific tests -- dx backend specific tests -- mt | ||||||
|     # backend specific tests -- dx |  | ||||||
| 
 |  | ||||||
|     # backend specific tests -- mt |  | ||||||
| )  |  | ||||||
| 
 |  | ||||||
| target_link_libraries(renderer_tests |  | ||||||
| PRIVATE |  | ||||||
|     surface |  | ||||||
|     pthread |  | ||||||
| ) | ) | ||||||
|  | 
 | ||||||
|  | target_link_libraries(renderer_tests PRIVATE surface pthread) | ||||||
|  |  | ||||||
|  | @ -1,2 +1,3 @@ | ||||||
| add_library(std INTERFACE) | 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) |     add_library_module(surface linux/system.cpp) | ||||||
|     target_link_libraries(surface PRIVATE X11) |     target_link_libraries(surface PRIVATE X11) | ||||||
| 
 | 
 | ||||||
|  | @ -7,17 +7,10 @@ else(WIN32) | ||||||
| 
 | 
 | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
| target_link_libraries(surface PUBLIC  | target_link_libraries( | ||||||
|     ecs |     surface | ||||||
|     app |     PUBLIC ecs app math memory tbb | ||||||
|     math |     PRIVATE logger lt_debug time) | ||||||
|     memory |  | ||||||
|     tbb |  | ||||||
|     PRIVATE |  | ||||||
|     logger  |  | ||||||
|     lt_debug |  | ||||||
|     time |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| add_test_module(surface system.test.cpp) | add_test_module(surface system.test.cpp) | ||||||
| add_fuzz_module(surface system.fuzz.cpp) | add_fuzz_module(surface system.fuzz.cpp) | ||||||
|  |  | ||||||
|  | @ -1,4 +1,3 @@ | ||||||
| add_library_module(time timer.cpp) | add_library_module(time timer.cpp) | ||||||
| target_link_libraries(time PUBLIC tbb) | target_link_libraries(time PUBLIC tbb) | ||||||
| add_test_module(time timer.test.cpp) | add_test_module(time timer.test.cpp) | ||||||
| 
 |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue