Skip to content

Commit

Permalink
CMAKE: unified whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Dec 15, 2024
1 parent 1c81749 commit f213cf6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,19 @@ if (ZIP)
endif()

function(shader_validation GAME SHADER MAPPACKTYPE)
set(PK3DIRS scripts.pk3dir padpack.pk3dir mappack.pk3dir)
foreach(PK3DIR ${PK3DIRS})
set(SHADERPATH "${CMAKE_CURRENT_SOURCE_DIR}/${PK3DIR}/scripts/${SHADER}")
if (EXISTS ${SHADERPATH})
set(targetname "shader-${GAME}-${SHADER}")
get_filename_component(targetname ${targetname} NAME_WLE)
get_filename_component(filename ${SHADERPATH} NAME)
add_test(NAME ${targetname}
COMMAND $<TARGET_FILE:shadertool> "${CMAKE_CURRENT_SOURCE_DIR}" "${SHADERPATH}" "${MAPPACKTYPE}"
WORKING_DIRECTORY "$<TARGET_FILE_DIR:shadertool>"
)
endif()
endforeach()
set(PK3DIRS scripts.pk3dir padpack.pk3dir mappack.pk3dir)
foreach(PK3DIR ${PK3DIRS})
set(SHADERPATH "${CMAKE_CURRENT_SOURCE_DIR}/${PK3DIR}/scripts/${SHADER}")
if (EXISTS ${SHADERPATH})
set(targetname "shader-${GAME}-${SHADER}")
get_filename_component(targetname ${targetname} NAME_WLE)
get_filename_component(filename ${SHADERPATH} NAME)
add_test(NAME ${targetname}
COMMAND $<TARGET_FILE:shadertool> "${CMAKE_CURRENT_SOURCE_DIR}" "${SHADERPATH}" "${MAPPACKTYPE}"
WORKING_DIRECTORY "$<TARGET_FILE_DIR:shadertool>"
)
endif()
endforeach()
endfunction()

function(bsp_validation GAME BSP MAPPACKTYPE)
Expand Down

0 comments on commit f213cf6

Please sign in to comment.