From 3a0b20fd716dda7c3775f5b2980351911d825dfa Mon Sep 17 00:00:00 2001 From: Geoffroy Aubey Date: Thu, 28 Sep 2017 00:19:01 +0200 Subject: [PATCH] Add compile options and compile defines to spirv-cross target. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca5918f..b37bbd5 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)