2014-03-12 02:34:44 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
|
|
|
|
|
|
|
|
project(glslang)
|
|
|
|
|
|
|
|
if(WIN32)
|
2014-03-28 18:07:35 +00:00
|
|
|
set(CMAKE_GENERATOR_TOOLSET "v110" CACHE STRING "Platform Toolset" FORCE)
|
2014-03-12 02:34:44 +00:00
|
|
|
include(ChooseMSVCCRT.cmake)
|
|
|
|
elseif(UNIX)
|
2014-04-14 14:45:55 +00:00
|
|
|
add_definitions(-fPIC)
|
2014-03-12 02:34:44 +00:00
|
|
|
else(WIN32)
|
|
|
|
message("unkown platform")
|
|
|
|
endif(WIN32)
|
|
|
|
|
2015-05-13 20:38:44 +00:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
add_definitions(-std=c++11)
|
|
|
|
endif()
|
|
|
|
|
2014-03-31 00:06:32 +00:00
|
|
|
add_subdirectory(glslang)
|
2014-03-12 02:34:44 +00:00
|
|
|
add_subdirectory(OGLCompilersDLL)
|
|
|
|
add_subdirectory(StandAlone)
|
2015-03-03 17:09:43 +00:00
|
|
|
add_subdirectory(SPIRV)
|