Files
test2/source/blender/gpu/glsl_preprocess/CMakeLists.txt
Miguel Pozo f24ad7a470 Build: Add WITH_OPTIMIZED_BUILD_TOOLS
Enable optimizations on Debug builds for executables used for the build
process (datatoc and glsl_preprocess) and enable unity builds for
shader preprocessing targets.

Debug: From 28.9s to 5.7s
Release: From 4.9s to 3.5s

Pull Request: https://projects.blender.org/blender/blender/pulls/138274
2025-05-02 18:33:44 +02:00

21 lines
477 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
)
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)