Actions workflow + slang, glsl compilation + asset copy
All checks were successful
Build / Build (push) Successful in 3m20s
All checks were successful
Build / Build (push) Successful in 3m20s
This commit is contained in:
@@ -10,6 +10,22 @@ foreach(cmake_file ${CMAKE_FILES})
|
||||
include(${cmake_file})
|
||||
endforeach()
|
||||
|
||||
# TODO: Add a check to disable compiling the examples
|
||||
|
||||
set(ASSET_DIR "assets/")
|
||||
set(SHADERS_DIR "assets/shaders")
|
||||
|
||||
create_copy_folder_target(copy_assets ${CMAKE_CURRENT_SOURCE_DIR}/assets ${CMAKE_CURRENT_BINARY_DIR}/assets)
|
||||
create_slang_shader_target(slang_shaders
|
||||
"${SHADERS_DIR}"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${SHADERS_DIR}"
|
||||
)
|
||||
create_glslc_shader_target(glsl_shaders
|
||||
"${SHADERS_DIR}"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${SHADERS_DIR}"
|
||||
)
|
||||
|
||||
|
||||
add_subdirectory(examples/shared)
|
||||
|
||||
add_subdirectory(examples/basicGLFWWindow)
|
||||
|
||||
Reference in New Issue
Block a user