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)
|
John Kessenich | 71241d8 | 2014-03-12 02:34:44 +0000 | [diff] [blame] | 10 | elseif(UNIX)
|
John Kessenich | 078c010 | 2014-04-14 14:45:55 +0000 | [diff] [blame] | 11 | add_definitions(-fPIC)
|
John Kessenich | 71241d8 | 2014-03-12 02:34:44 +0000 | [diff] [blame] | 12 | else(WIN32)
|
| 13 | message("unkown platform")
|
| 14 | endif(WIN32)
|
| 15 |
|
John Kessenich | fde7034 | 2014-03-31 00:06:32 +0000 | [diff] [blame] | 16 | add_subdirectory(glslang)
|
John Kessenich | 71241d8 | 2014-03-12 02:34:44 +0000 | [diff] [blame] | 17 | add_subdirectory(OGLCompilersDLL)
|
| 18 | add_subdirectory(StandAlone)
|
John Kessenich | 0df0cde | 2015-03-03 17:09:43 +0000 | [diff] [blame] | 19 | add_subdirectory(SPIRV)
|