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)
|
John Kessenich | e564fc5 | 2014-03-28 18:07:35 +0000 | [diff] [blame^] | 8 | set(CMAKE_GENERATOR_TOOLSET "v110" CACHE STRING "Platform Toolset" FORCE)
|
John Kessenich | 71241d8 | 2014-03-12 02:34:44 +0000 | [diff] [blame] | 9 | include(ChooseMSVCCRT.cmake)
|
| 10 | foreach(build_type ${CMAKE_CONFIGURATION_TYPES} ${CMAKE_BUILD_TYPE})
|
| 11 | string(TOUPPER "${build_type}" build)
|
| 12 | message("CMAKE_CXX_FLAGS_${build} are ${CMAKE_CXX_FLAGS_${build}}")
|
| 13 | endforeach(build_type)
|
| 14 |
|
| 15 | add_subdirectory(glslang/OSDependent/Windows)
|
| 16 | elseif(UNIX)
|
| 17 | add_subdirectory(glslang/OSDependent/Linux)
|
| 18 | else(WIN32)
|
| 19 | message("unkown platform")
|
| 20 | endif(WIN32)
|
| 21 |
|
| 22 | add_subdirectory(glslang/MachineIndependent)
|
| 23 | add_subdirectory(glslang/MachineIndependent/preprocessor)
|
| 24 | add_subdirectory(glslang/GenericCodeGen)
|
| 25 | add_subdirectory(OGLCompilersDLL)
|
| 26 | add_subdirectory(StandAlone)
|