mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
27 lines
No EOL
671 B
CMake
27 lines
No EOL
671 B
CMake
project(ShaderRecomp)
|
|
|
|
include(bin2h.cmake)
|
|
bin2h(SOURCE_FILE shader_common.hlsli HEADER_FILE shader_common.hlsli.h VARIABLE_NAME SHADER_COMMON_HLSLI)
|
|
|
|
add_executable(ShaderRecomp
|
|
constant_table.h
|
|
dxc_compiler.cpp
|
|
dxc_compiler.h
|
|
main.cpp
|
|
pch.h
|
|
shader.h
|
|
shader_code.h
|
|
shader_common.hlsli.h
|
|
shader_recompiler.cpp
|
|
shader_recompiler.h)
|
|
|
|
find_package(directx-dxc CONFIG REQUIRED)
|
|
find_package(xxhash CONFIG REQUIRED)
|
|
|
|
target_link_libraries(ShaderRecomp PRIVATE
|
|
Microsoft::DirectXShaderCompiler
|
|
xxHash::xxhash)
|
|
|
|
target_precompile_headers(ShaderRecomp PRIVATE pch.h)
|
|
|
|
add_compile_definitions(ShaderRecomp _CRT_SECURE_NO_WARNINGS) |