mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
08dee03d18
* This also moves bison generated files into the source tree, so that include of glslang_tab.cpp.h and includes from glslang_tab.cpp work the same way.
28 lines
467 B
CMake
Executable File
28 lines
467 B
CMake
Executable File
cmake_minimum_required(VERSION 2.8)
|
|
|
|
set(SOURCES
|
|
GlslangToSpv.cpp
|
|
SpvBuilder.cpp
|
|
SPVRemapper.cpp
|
|
doc.cpp
|
|
disassemble.cpp)
|
|
|
|
set(HEADERS
|
|
spirv.hpp
|
|
GLSL.std.450.h
|
|
GlslangToSpv.h
|
|
SpvBuilder.h
|
|
SPVRemapper.h
|
|
spvIR.h
|
|
doc.h
|
|
disassemble.h)
|
|
|
|
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
|
|
|
|
if(WIN32)
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
|
endif(WIN32)
|
|
|
|
install(TARGETS SPIRV
|
|
ARCHIVE DESTINATION lib)
|