Allowed for LIB_TYPE to be set to switch between static and shared libs for glslang, SPIRV, and HLSL

This commit is contained in:
Matthew Albrecht
2018-03-30 09:32:03 -05:00
parent fbdba369c9
commit 6c5f649ae8
4 changed files with 26 additions and 4 deletions

View File

@@ -9,6 +9,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Adhere to GNU filesystem layout conventions
include(GNUInstallDirs)
option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
set(LIB_TYPE STATIC)
if(BUILD_SHARED_LIBS)
set(LIB_TYPE SHARED)
endif()
option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
if(NOT ${SKIP_GLSLANG_INSTALL})
set(ENABLE_GLSLANG_INSTALL ON)