John Kessenich | 71241d8 | 2014-03-12 02:34:44 +0000 | [diff] [blame^] | 1 | cmake_minimum_required(VERSION 2.8)
|
| 2 |
|
| 3 | set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
|
| 4 |
|
| 5 | project(glslang)
|
| 6 |
|
| 7 | if(WIN32)
|
| 8 | include(ChooseMSVCCRT.cmake)
|
| 9 | foreach(build_type ${CMAKE_CONFIGURATION_TYPES} ${CMAKE_BUILD_TYPE})
|
| 10 | string(TOUPPER "${build_type}" build)
|
| 11 | message("CMAKE_CXX_FLAGS_${build} are ${CMAKE_CXX_FLAGS_${build}}")
|
| 12 | endforeach(build_type)
|
| 13 |
|
| 14 | add_subdirectory(glslang/OSDependent/Windows)
|
| 15 | elseif(UNIX)
|
| 16 | add_subdirectory(glslang/OSDependent/Linux)
|
| 17 | else(WIN32)
|
| 18 | message("unkown platform")
|
| 19 | endif(WIN32)
|
| 20 |
|
| 21 | add_subdirectory(glslang/MachineIndependent)
|
| 22 | add_subdirectory(glslang/MachineIndependent/preprocessor)
|
| 23 | add_subdirectory(glslang/GenericCodeGen)
|
| 24 | add_subdirectory(OGLCompilersDLL)
|
| 25 | add_subdirectory(StandAlone)
|