mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 01:44:30 +00:00
added qt6 shader utils
This commit is contained in:
parent
5e8b1cddc5
commit
9d88f46664
@ -92,3 +92,20 @@ function(configure_file_in name file)
|
||||
configure_file("${file}.in" ${file} @ONLY)
|
||||
|
||||
endfunction()
|
||||
|
||||
|
||||
# This function do convert shader files to prepared for qt shaders
|
||||
# Arguments :
|
||||
# name - it is name of the target for that will be configuret selected file.
|
||||
# file - it is file that will be configured
|
||||
# see https://doc.qt.io/qt-6/qtshadertools-index.html
|
||||
function(configure_qt_shader name file)
|
||||
|
||||
|
||||
find_program(QSB qsb)
|
||||
execute_process(COMMAND ${QSB} "-o" "${file}.qsb" "${file}"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMAND_ERROR_IS_FATAL ANY)
|
||||
|
||||
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user