Changed source files to strings to match VS.
This commit is contained in:
parent
4d5cffa3d7
commit
cef36af79d
|
|
@ -11,31 +11,35 @@ find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
||||||
find_package(EASTL CONFIG REQUIRED)
|
find_package(EASTL CONFIG REQUIRED)
|
||||||
|
|
||||||
set(HEADER_FILES
|
set(HEADER_FILES
|
||||||
constants.h
|
"constants.h"
|
||||||
config.h
|
"config.h"
|
||||||
logger.h
|
"logger.h"
|
||||||
global.h
|
"global.h"
|
||||||
context.h
|
"context.h"
|
||||||
window.h
|
"window.h"
|
||||||
physical_device.h
|
"physical_device.h"
|
||||||
device.h
|
"device.h"
|
||||||
swapchain.h
|
"swapchain.h"
|
||||||
pipeline.h
|
"pipeline.h"
|
||||||
queue_allocation.h
|
"queue_allocation.h"
|
||||||
buffer.h "surface.h" "size.h" "timer.h")
|
"buffer.h"
|
||||||
|
"surface.h"
|
||||||
|
"size.h"
|
||||||
|
"timer.h")
|
||||||
|
|
||||||
set(SOURCE_FILES
|
set(SOURCE_FILES
|
||||||
logger.cpp
|
"logger.cpp"
|
||||||
global.cpp
|
"global.cpp"
|
||||||
context.cpp
|
"context.cpp"
|
||||||
window.cpp
|
"window.cpp"
|
||||||
physical_device.cpp
|
"physical_device.cpp"
|
||||||
device.cpp
|
"device.cpp"
|
||||||
swapchain.cpp
|
"swapchain.cpp"
|
||||||
pipeline.cpp
|
"pipeline.cpp"
|
||||||
buffer.cpp
|
"buffer.cpp"
|
||||||
image.cpp
|
"image.cpp"
|
||||||
image.h "surface.cpp")
|
"image.h"
|
||||||
|
"surface.cpp")
|
||||||
|
|
||||||
add_library(aster_core STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
add_library(aster_core STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
||||||
set_property(TARGET aster_core PROPERTY CXX_STANDARD 20)
|
set_property(TARGET aster_core PROPERTY CXX_STANDARD 20)
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@ cmake_minimum_required(VERSION 3.13)
|
||||||
find_package(imgui CONFIG REQUIRED)
|
find_package(imgui CONFIG REQUIRED)
|
||||||
|
|
||||||
add_library(util_helper STATIC
|
add_library(util_helper STATIC
|
||||||
helpers.h
|
"helpers.h"
|
||||||
helpers.cpp
|
"helpers.cpp"
|
||||||
frame.cpp
|
"frame.cpp"
|
||||||
frame.h
|
"frame.h"
|
||||||
gui.cpp
|
"gui.cpp"
|
||||||
gui.h)
|
"gui.h")
|
||||||
|
|
||||||
target_link_libraries(util_helper PRIVATE aster_core)
|
target_link_libraries(util_helper PRIVATE aster_core)
|
||||||
target_link_libraries(util_helper PRIVATE imgui::imgui)
|
target_link_libraries(util_helper PRIVATE imgui::imgui)
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
add_executable(triangle triangle.cpp)
|
add_executable(triangle "triangle.cpp")
|
||||||
add_shader(triangle shader/triangle.vert.glsl)
|
add_shader(triangle "shader/triangle.vert.glsl")
|
||||||
add_shader(triangle shader/triangle.frag.glsl)
|
add_shader(triangle "shader/triangle.frag.glsl")
|
||||||
|
|
||||||
target_link_libraries(triangle PRIVATE aster_core)
|
target_link_libraries(triangle PRIVATE aster_core)
|
||||||
target_link_libraries(triangle PRIVATE util_helper)
|
target_link_libraries(triangle PRIVATE util_helper)
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined -fsanitize=address")
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined -fsanitize=address")
|
||||||
|
|
||||||
add_executable(box box.cpp stb_image.h)
|
add_executable(box "box.cpp" "stb_image.h")
|
||||||
add_shader(box shader/box.vert.glsl)
|
add_shader(box "shader/box.vert.glsl")
|
||||||
add_shader(box shader/box.frag.glsl)
|
add_shader(box "shader/box.frag.glsl")
|
||||||
|
|
||||||
target_link_libraries(box PRIVATE aster_core)
|
target_link_libraries(box PRIVATE aster_core)
|
||||||
target_link_libraries(box PRIVATE util_helper)
|
target_link_libraries(box PRIVATE util_helper)
|
||||||
|
|
|
||||||
|
|
@ -5,28 +5,28 @@ cmake_minimum_required(VERSION 3.13)
|
||||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined -fsanitize=address")
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined -fsanitize=address")
|
||||||
find_path(TINYGLTF_INCLUDE_DIRS "tiny_gltf.h")
|
find_path(TINYGLTF_INCLUDE_DIRS "tiny_gltf.h")
|
||||||
|
|
||||||
add_executable(model_render model_render.cpp
|
add_executable(model_render "model_render.cpp"
|
||||||
pipeline_utils.cpp
|
"pipeline_utils.cpp"
|
||||||
pipeline_utils.h
|
"pipeline_utils.h"
|
||||||
asset_loader.cpp
|
"asset_loader.cpp"
|
||||||
asset_loader.h
|
"asset_loader.h"
|
||||||
light_manager.cpp
|
"light_manager.cpp"
|
||||||
light_manager.h
|
"light_manager.h"
|
||||||
gpu_resource_manager.cpp
|
"gpu_resource_manager.cpp"
|
||||||
gpu_resource_manager.h
|
"gpu_resource_manager.h"
|
||||||
nodes.cpp
|
"nodes.cpp"
|
||||||
nodes.h
|
"nodes.h"
|
||||||
ibl_helpers.cpp
|
"ibl_helpers.cpp"
|
||||||
ibl_helpers.h)
|
"ibl_helpers.h")
|
||||||
|
|
||||||
add_shader(model_render shader/model.vs.hlsl)
|
add_shader(model_render "shader/model.vs.hlsl")
|
||||||
add_shader(model_render shader/model.ps.hlsl)
|
add_shader(model_render "shader/model.ps.hlsl")
|
||||||
add_shader(model_render shader/eqrect_to_cube.cs.hlsl)
|
add_shader(model_render "shader/eqrect_to_cube.cs.hlsl")
|
||||||
add_shader(model_render shader/background.vs.hlsl)
|
add_shader(model_render "shader/background.vs.hlsl")
|
||||||
add_shader(model_render shader/background.ps.hlsl)
|
add_shader(model_render "shader/background.ps.hlsl")
|
||||||
add_shader(model_render shader/diffuse_irradiance.cs.hlsl)
|
add_shader(model_render "shader/diffuse_irradiance.cs.hlsl")
|
||||||
add_shader(model_render shader/prefilter.cs.hlsl)
|
add_shader(model_render "shader/prefilter.cs.hlsl")
|
||||||
add_shader(model_render shader/brdf_lut.cs.hlsl)
|
add_shader(model_render "shader/brdf_lut.cs.hlsl")
|
||||||
|
|
||||||
target_link_libraries(model_render PRIVATE aster_core)
|
target_link_libraries(model_render PRIVATE aster_core)
|
||||||
target_link_libraries(model_render PRIVATE util_helper)
|
target_link_libraries(model_render PRIVATE util_helper)
|
||||||
|
|
|
||||||
|
|
@ -7,24 +7,24 @@ find_path(TINYGLTF_INCLUDE_DIRS "tiny_gltf.h")
|
||||||
|
|
||||||
find_package(EnTT REQUIRED CONFIG)
|
find_package(EnTT REQUIRED CONFIG)
|
||||||
|
|
||||||
add_executable(scene_render main.cpp
|
add_executable(scene_render "main.cpp"
|
||||||
render_resource_manager.cpp render_resource_manager.h
|
"render_resource_manager.cpp" "render_resource_manager.h"
|
||||||
asset_loader.cpp asset_loader.h
|
"asset_loader.cpp" "asset_loader.h"
|
||||||
pipeline_utils.cpp pipeline_utils.h
|
"pipeline_utils.cpp" "pipeline_utils.h"
|
||||||
core_components.h
|
"core_components.h"
|
||||||
ecs_adapter.h
|
"ecs_adapter.h"
|
||||||
camera.h
|
"camera.h"
|
||||||
ibl_helpers.cpp ibl_helpers.h
|
"ibl_helpers.cpp" "ibl_helpers.h"
|
||||||
light_manager.cpp light_manager.h)
|
"light_manager.cpp" "light_manager.h")
|
||||||
|
|
||||||
add_shader(scene_render shader/model.frag.glsl)
|
add_shader(scene_render "shader/model.frag.glsl")
|
||||||
add_shader(scene_render shader/model.vert.glsl)
|
add_shader(scene_render "shader/model.vert.glsl")
|
||||||
add_shader(scene_render shader/eqrect_to_cube.cs.hlsl)
|
add_shader(scene_render "shader/eqrect_to_cube.cs.hlsl")
|
||||||
add_shader(scene_render shader/diffuse_irradiance.cs.hlsl)
|
add_shader(scene_render "shader/diffuse_irradiance.cs.hlsl")
|
||||||
add_shader(scene_render shader/prefilter.cs.hlsl)
|
add_shader(scene_render "shader/prefilter.cs.hlsl")
|
||||||
add_shader(scene_render shader/brdf_lut.cs.hlsl)
|
add_shader(scene_render "shader/brdf_lut.cs.hlsl")
|
||||||
add_shader(scene_render shader/background.vert.glsl)
|
add_shader(scene_render "shader/background.vert.glsl")
|
||||||
add_shader(scene_render shader/background.frag.glsl)
|
add_shader(scene_render "shader/background.frag.glsl")
|
||||||
|
|
||||||
target_link_libraries(scene_render PRIVATE aster_core)
|
target_link_libraries(scene_render PRIVATE aster_core)
|
||||||
target_link_libraries(scene_render PRIVATE util_helper)
|
target_link_libraries(scene_render PRIVATE util_helper)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue