Add submitted CMake files for Linux builds. All existing ways of building remain in tact.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25403 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
6494baf371
commit
0547c2a6bb
8 changed files with 92 additions and 0 deletions
7
glslang/GenericCodeGen/CMakeLists.txt
Normal file
7
glslang/GenericCodeGen/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
include_directories(. ..)
|
||||
set(SOURCES CodeGen.cpp Link.cpp)
|
||||
|
||||
add_library(GenericCodeGen STATIC ${SOURCES})
|
||||
|
||||
29
glslang/MachineIndependent/CMakeLists.txt
Normal file
29
glslang/MachineIndependent/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
include_directories(. ../OSDependent/Linux ../../OGLCompilersDLL ${CMAKE_CURRENT_BINARY_DIR})
|
||||
set(SOURCES
|
||||
Constant.cpp
|
||||
InfoSink.cpp
|
||||
Initialize.cpp
|
||||
IntermTraverse.cpp
|
||||
Intermediate.cpp
|
||||
ParseHelper.cpp
|
||||
PoolAlloc.cpp
|
||||
RemoveTree.cpp
|
||||
Scan.cpp
|
||||
ShaderLang.cpp
|
||||
SymbolTable.cpp
|
||||
Versions.cpp
|
||||
intermOut.cpp
|
||||
limits.cpp
|
||||
linkValidate.cpp
|
||||
parseConst.cpp
|
||||
reflection.cpp)
|
||||
|
||||
find_package(BISON)
|
||||
BISON_TARGET(GLSLParser glslang.y ${CMAKE_CURRENT_BINARY_DIR}/gen_glslang_tab.cpp
|
||||
COMPILE_FLAGS
|
||||
"--defines=${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp.h")
|
||||
|
||||
add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES})
|
||||
|
||||
14
glslang/MachineIndependent/preprocessor/CMakeLists.txt
Normal file
14
glslang/MachineIndependent/preprocessor/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
include_directories(. ..)
|
||||
set(SOURCES
|
||||
Pp.cpp
|
||||
PpAtom.cpp
|
||||
PpContext.cpp
|
||||
PpMemory.cpp
|
||||
PpScanner.cpp
|
||||
PpSymbols.cpp
|
||||
PpTokens.cpp)
|
||||
|
||||
add_library(Preprocessor STATIC ${SOURCES})
|
||||
|
||||
6
glslang/OSDependent/Linux/CMakeLists.txt
Normal file
6
glslang/OSDependent/Linux/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
include_directories(. ../../../OGLCompilersDLL)
|
||||
|
||||
add_library(OSDependent STATIC ossource.cpp)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue