Duckstation/dep/reshadefx/CMakeLists.txt

34 lines
913 B
CMake
Raw Normal View History

2023-08-13 04:03:17 +00:00
add_library(reshadefx
include/effect_codegen.hpp
include/effect_expression.hpp
include/effect_lexer.hpp
include/effect_module.hpp
include/effect_parser.hpp
include/effect_preprocessor.hpp
include/effect_symbol_table.hpp
include/effect_token.hpp
src/effect_codegen_glsl.cpp
src/effect_codegen_hlsl.cpp
src/effect_codegen_spirv.cpp
src/effect_expression.cpp
src/effect_lexer.cpp
src/effect_parser_exp.cpp
src/effect_parser_stmt.cpp
src/effect_preprocessor.cpp
src/effect_symbol_table.cpp
)
target_include_directories(reshadefx PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/src"
"${CMAKE_CURRENT_SOURCE_DIR}/../spirv-cross/include/spirv-cross" # SPIR-V
)
target_include_directories(reshadefx INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/include"
)
# reshadefx is not C++20-compatible.
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)