Files
test2/source/blender/gpu/glsl_preprocess/CMakeLists.txt
2025-08-21 17:09:18 +10:00

22 lines
496 B
CMake

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
# -----------------------------------------------------------------------------
# Build `glsl_preprocess` executable.
set(SRC
glsl_preprocess.cc
glsl_preprocess.hh
shader_parser.hh
)
if(WITH_GPU_SHADER_ASSERT)
add_definitions(-DWITH_GPU_SHADER_ASSERT)
endif()
# `SRC_DNA_INC` is defined in the parent directory.
add_executable(glsl_preprocess ${SRC})
optimize_debug_target(glsl_preprocess)