diff --git a/CMakeLists.txt b/CMakeLists.txt index ca5918f3..b37bbd52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,9 @@ spirv_cross_add_library(spirv-cross-hlsl spirv_cross_hlsl STATIC ${CMAKE_CURRENT_SOURCE_DIR}/spirv_hlsl.cpp) add_executable(spirv-cross main.cpp) +target_compile_options(spirv-cross PRIVATE ${spirv-compiler-options}) +target_compile_definitions(spirv-cross PRIVATE ${spirv-compiler-defines}) + install(TARGETS spirv-cross RUNTIME DESTINATION bin) target_link_libraries(spirv-cross spirv-cross-glsl spirv-cross-hlsl spirv-cross-cpp spirv-cross-msl spirv-cross-core) target_link_libraries(spirv-cross-glsl spirv-cross-core)