2015-06-26 22:58:36 +00:00
|
|
|
set(SOURCES
|
|
|
|
GlslangToSpv.cpp
|
2016-01-18 21:18:37 +00:00
|
|
|
InReadableOrder.cpp
|
2016-05-04 19:55:59 +00:00
|
|
|
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
|
2016-05-04 19:55:59 +00:00
|
|
|
Logger.h
|
2015-06-26 22:58:36 +00:00
|
|
|
SpvBuilder.h
|
|
|
|
SPVRemapper.h
|
|
|
|
spvIR.h
|
|
|
|
doc.h
|
|
|
|
disassemble.h)
|
|
|
|
|
2016-05-05 04:30:44 +00:00
|
|
|
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})
|
2016-05-05 18:45:53 +00:00
|
|
|
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)
|