Integrate glslang CMake targets

This commit is contained in:
Jack Andersen 2016-01-14 11:10:48 -10:00
parent a530e04280
commit a79f55c5c1
2 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,11 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleCl
set_source_files_properties(lib/graphicsdev/glew.c PROPERTIES COMPILE_FLAGS -Os)
endif()
add_subdirectory(glslang/glslang EXCLUDE_FROM_ALL)
add_subdirectory(glslang/OGLCompilersDLL EXCLUDE_FROM_ALL)
add_subdirectory(glslang/SPIRV EXCLUDE_FROM_ALL)
list(APPEND _BOO_SYS_LIBS glslang OSDependent OGLCompiler SPIRV)
set(BOO_SYS_LIBS ${_BOO_SYS_LIBS} CACHE PATH "Boo System Libraries" FORCE)
set(BOO_SYS_DEFINES ${_BOO_SYS_DEFINES} CACHE PATH "Boo System Defines" FORCE)

View File

@ -184,6 +184,7 @@ struct IGraphicsDataFactory
D3D11,
D3D12,
Metal,
Vulkan,
GX,
GX2
};