if(NOT ${SKIP_GLSLANG_INSTALL})
set(ENABLE_GLSLANG_INSTALL ON)
endif()
+option(ENABLE_SPVREMAPPER "Enables building of SPVRemapper" ON)
option(ENABLE_AMD_EXTENSIONS "Enables support of AMD-specific extensions" ON)
option(ENABLE_GLSLANG_BINARIES "Builds glslangValidator and spirv-remap" ON)
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "..." FORCE)
endif()
+ option(USE_CCACHE "Use ccache" OFF)
+ if(USE_CCACHE)
+ find_program(CCACHE_FOUND ccache)
+ if(CCACHE_FOUND)
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+ endif(CCACHE_FOUND)
+ endif()
+
project(glslang)
# make testing optional
include(CTest)
endif(ENABLE_HLSL)
if(WIN32)
- set(CMAKE_DEBUG_POSTFIX "d")
+ set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Adds a postfix for debug-built libraries.")
if(MSVC)
include(ChooseMSVCCRT.cmake)
endif(MSVC)