glslang/SPIRV/CMakeLists.txt

35 lines
629 B
CMake
Raw Normal View History

2015-06-26 22:58:36 +00:00
set(SOURCES
GlslangToSpv.cpp
2016-01-18 21:18:37 +00:00
InReadableOrder.cpp
Logger.cpp
2015-06-26 22:58:36 +00:00
SpvBuilder.cpp
SPVRemapper.cpp
doc.cpp
disassemble.cpp)
set(HEADERS
2015-08-07 04:53:06 +00:00
spirv.hpp
GLSL.std.450.h
2015-06-26 22:58:36 +00:00
GlslangToSpv.h
Logger.h
2015-06-26 22:58:36 +00:00
SpvBuilder.h
SPVRemapper.h
spvIR.h
doc.h
disassemble.h)
if(ENABLE_AMD_EXTENSIONS)
set(HEADERS
GLSL.ext.AMD.h)
endif(ENABLE_AMD_EXTENSIONS)
2015-06-26 22:58:36 +00:00
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
2015-06-26 22:58:36 +00:00
if(WIN32)
source_group("Source" FILES ${SOURCES} ${HEADERS})
endif(WIN32)
install(TARGETS SPIRV
ARCHIVE DESTINATION lib)