Now it's even simpler, and it now generates multiple shader languages at once! The copying mechanism is now much simpler on non-mac platforms as well. HLSL is also now a supported shader target language.
22 lines
468 B
CMake
Executable file
22 lines
468 B
CMake
Executable file
set(SRC
|
|
include/shadercompiler.hpp
|
|
|
|
src/shadercompiler.cpp
|
|
src/includer.hpp
|
|
src/defaultresources.hpp)
|
|
|
|
add_library(ShaderCompiler STATIC ${SRC})
|
|
target_link_libraries(ShaderCompiler
|
|
PUBLIC
|
|
Platform
|
|
PRIVATE
|
|
Utility
|
|
Log
|
|
spirv-cross-core
|
|
spirv-cross-glsl
|
|
spirv-cross-msl
|
|
spirv-cross-hlsl
|
|
glslang
|
|
SPIRV)
|
|
target_include_directories(ShaderCompiler PUBLIC include PRIVATE src)
|
|
set_engine_properties(ShaderCompiler)
|