2015-06-26 16:58:36 -06:00
|
|
|
set(SOURCES
|
|
|
|
GlslangToSpv.cpp
|
2016-01-18 16:18:37 -05:00
|
|
|
InReadableOrder.cpp
|
2016-05-04 15:55:59 -04:00
|
|
|
Logger.cpp
|
2015-06-26 16:58:36 -06:00
|
|
|
SpvBuilder.cpp
|
|
|
|
doc.cpp
|
|
|
|
disassemble.cpp)
|
|
|
|
|
2016-08-17 16:18:06 -06:00
|
|
|
set(SPVREMAP_SOURCES
|
|
|
|
SPVRemapper.cpp
|
|
|
|
doc.cpp)
|
|
|
|
|
2015-06-26 16:58:36 -06:00
|
|
|
set(HEADERS
|
Parser: Implement extension GL_AMD_gpu_shader_half_float.
- Add built-in types: float16_t, f16vec, f16mat.
- Add support of half float constant: hf, HF.
- Extend built-in floating-point operators: +, -, *, /, ++, --, +=, -=,
*=, /=, ==, !=, >=, <=, >, <.
- Add support of type conversions: float16_t -> XXX, XXX -> float16_t.
- Add new built-in functions.
2016-07-29 16:00:05 +08:00
|
|
|
bitutils.h
|
2015-08-06 22:53:06 -06:00
|
|
|
spirv.hpp
|
|
|
|
GLSL.std.450.h
|
2016-09-21 18:56:12 +08:00
|
|
|
GLSL.ext.KHR.h
|
2015-06-26 16:58:36 -06:00
|
|
|
GlslangToSpv.h
|
Parser: Implement extension GL_AMD_gpu_shader_half_float.
- Add built-in types: float16_t, f16vec, f16mat.
- Add support of half float constant: hf, HF.
- Extend built-in floating-point operators: +, -, *, /, ++, --, +=, -=,
*=, /=, ==, !=, >=, <=, >, <.
- Add support of type conversions: float16_t -> XXX, XXX -> float16_t.
- Add new built-in functions.
2016-07-29 16:00:05 +08:00
|
|
|
hex_float.h
|
2016-05-04 15:55:59 -04:00
|
|
|
Logger.h
|
2015-06-26 16:58:36 -06:00
|
|
|
SpvBuilder.h
|
|
|
|
spvIR.h
|
|
|
|
doc.h
|
|
|
|
disassemble.h)
|
|
|
|
|
2016-08-17 16:18:06 -06:00
|
|
|
set(SPVREMAP_HEADERS
|
|
|
|
SPVRemapper.h
|
|
|
|
doc.h)
|
|
|
|
|
2016-05-05 12:30:44 +08:00
|
|
|
if(ENABLE_AMD_EXTENSIONS)
|
Parser: Implement extension GL_AMD_gpu_shader_half_float.
- Add built-in types: float16_t, f16vec, f16mat.
- Add support of half float constant: hf, HF.
- Extend built-in floating-point operators: +, -, *, /, ++, --, +=, -=,
*=, /=, ==, !=, >=, <=, >, <.
- Add support of type conversions: float16_t -> XXX, XXX -> float16_t.
- Add new built-in functions.
2016-07-29 16:00:05 +08:00
|
|
|
list(APPEND
|
|
|
|
HEADERS
|
|
|
|
GLSL.ext.AMD.h)
|
2016-05-05 12:30:44 +08:00
|
|
|
endif(ENABLE_AMD_EXTENSIONS)
|
|
|
|
|
2016-12-19 16:29:34 -08:00
|
|
|
if(ENABLE_NV_EXTENSIONS)
|
2017-01-24 14:24:21 +08:00
|
|
|
list(APPEND
|
|
|
|
HEADERS
|
|
|
|
GLSL.ext.NV.h)
|
2016-12-19 16:29:34 -08:00
|
|
|
endif(ENABLE_NV_EXTENSIONS)
|
|
|
|
|
2015-06-26 16:58:36 -06:00
|
|
|
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
|
2017-07-04 10:53:45 -04:00
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2017-01-21 10:59:15 -08:00
|
|
|
target_link_libraries(SPIRV glslang)
|
2015-06-26 16:58:36 -06:00
|
|
|
|
2016-08-17 16:18:06 -06:00
|
|
|
add_library(SPVRemapper STATIC ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
2017-07-04 10:53:45 -04:00
|
|
|
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2016-08-17 16:18:06 -06:00
|
|
|
|
2015-06-26 16:58:36 -06:00
|
|
|
if(WIN32)
|
|
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
2016-08-17 16:18:06 -06:00
|
|
|
source_group("Source" FILES ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
2015-06-26 16:58:36 -06:00
|
|
|
endif(WIN32)
|
|
|
|
|
2017-07-04 06:00:35 -07:00
|
|
|
if(ENABLE_GLSLANG_INSTALL)
|
|
|
|
install(TARGETS SPIRV SPVRemapper
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
2017-01-29 17:45:12 -08:00
|
|
|
|
2017-07-04 06:00:35 -07:00
|
|
|
install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/)
|
|
|
|
endif(ENABLE_GLSLANG_INSTALL)
|