Files
oak-editor/app/shaders/CMakeLists.txt
T
2026-07-13 15:30:43 +08:00

30 lines
1.1 KiB
CMake

# Olive - Non-Linear Video Editor
# Copyright (C) 2022 Olive Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
file(GLOB_RECURSE SHADER_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.frag *.vert)
set(QRC_BODY "")
foreach (SHADER_FILE ${SHADER_RESOURCES})
string(APPEND QRC_BODY "<file>${SHADER_FILE}</file>\n")
configure_file(${SHADER_FILE} ${SHADER_FILE} COPYONLY)
endforeach ()
configure_file(shaders.qrc.in shaders.qrc @ONLY)
set(OLIVE_RESOURCES
${OLIVE_RESOURCES}
${CMAKE_CURRENT_BINARY_DIR}/shaders.qrc
PARENT_SCOPE
)