Skip to content
Snippets Groups Projects
Commit dc1a8196 authored by John Kessenich's avatar John Kessenich
Browse files

Infrastructure: Support standard build with ENABLE_HLSL set to off.

parent 65d538c8
No related branches found
No related tags found
No related merge requests found
...@@ -71,5 +71,5 @@ endif() ...@@ -71,5 +71,5 @@ endif()
add_subdirectory(SPIRV) add_subdirectory(SPIRV)
if(ENABLE_HLSL) if(ENABLE_HLSL)
add_subdirectory(hlsl) add_subdirectory(hlsl)
endif() endif(ENABLE_HLSL)
add_subdirectory(gtests) add_subdirectory(gtests)
...@@ -28,7 +28,7 @@ set(LIBRARIES ...@@ -28,7 +28,7 @@ set(LIBRARIES
if(ENABLE_HLSL) if(ENABLE_HLSL)
set(LIBRARIES ${LIBRARIES} HLSL) set(LIBRARIES ${LIBRARIES} HLSL)
endif() endif(ENABLE_HLSL)
if(WIN32) if(WIN32)
set(LIBRARIES ${LIBRARIES} psapi) set(LIBRARIES ${LIBRARIES} psapi)
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits. // For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run). // For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.1759" #define GLSLANG_REVISION "Overload400-PrecQual.1760"
#define GLSLANG_DATE "11-Jan-2017" #define GLSLANG_DATE "11-Jan-2017"
...@@ -40,9 +40,15 @@ if (TARGET gmock) ...@@ -40,9 +40,15 @@ if (TARGET gmock)
${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}
${gmock_SOURCE_DIR}/include ${gmock_SOURCE_DIR}/include
${gtest_SOURCE_DIR}/include) ${gtest_SOURCE_DIR}/include)
target_link_libraries(glslangtests PRIVATE
SPVRemapper glslang OSDependent OGLCompiler HLSL glslang set(LIBRARIES
SPIRV glslang-default-resource-limits gmock) SPVRemapper glslang OSDependent OGLCompiler glslang
SPIRV glslang-default-resource-limits)
if(ENABLE_HLSL)
set(LIBRARIES ${LIBRARIES} HLSL)
endif(ENABLE_HLSL)
target_link_libraries(glslangtests PRIVATE ${LIBRARIES} gmock)
add_test(NAME glslang-gtests add_test(NAME glslang-gtests
COMMAND glslangtests --test-root "${GLSLANG_TEST_DIRECTORY}") COMMAND glslangtests --test-root "${GLSLANG_TEST_DIRECTORY}")
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment