17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 23:59:12 +01:00
Files
maszyna/manul/shaders/CMakeLists.txt

11 lines
338 B
CMake

file(GLOB_RECURSE src "*.hlsl*" "*.h")
list(APPEND src "project.manul")
get_target_property(dxil_path MaShaderCompiler dxil_path)
add_custom_target(
${LIBMANUL_NAME}_shaders
MaShaderCompiler "${dxil_path}" "${CMAKE_CURRENT_SOURCE_DIR}/project.manul" "$<TARGET_FILE_DIR:${PROJECT_NAME}>/shaders"
DEPENDS ${src})