Files
compute-runtime/scripts/format/CMakeLists.txt
Mateusz Jablonski 720326fd6a Reorganize VS solution tree
Move scripts targets to neo scripts folder
Move spirv targets to shared builtins folder
Move compute_runtime_mockable_extra to ze_intel_gpu folder

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-23 19:06:20 +01:00

24 lines
584 B
CMake

#
# Copyright (C) 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(WIN32)
set(extension bat)
else()
set(extension sh)
endif()
add_custom_target(format_files
${NEO_SOURCE_DIR}/scripts/format/format.${extension} ${NEO_SOURCE_DIR}
WORKING_DIRECTORY ${NEO_SOURCE_DIR}
COMMENT "Formatting changed files"
)
set_target_properties(format_files PROPERTIES
EXCLUDE_FROM_DEFAULT_BUILD TRUE
EXCLUDE_FROM_ALL TRUE
FOLDER ${NEO_SCRIPT_PROJECTS_FOLDER}
)