mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-16 19:19:13 +01:00
690dee3533
This updates glslang to commit 4fc7a33910fb8e40b970d160e1b38ab3f67fe0f3 which is the current version listed in the known_good.json file for the version 1.2.131.2 of the Vulkan-ValidationLayers repo.
46 lines
1.2 KiB
CMake
46 lines
1.2 KiB
CMake
set(SOURCES
|
|
hlslAttributes.cpp
|
|
hlslParseHelper.cpp
|
|
hlslScanContext.cpp
|
|
hlslOpMap.cpp
|
|
hlslTokenStream.cpp
|
|
hlslGrammar.cpp
|
|
hlslParseables.cpp)
|
|
|
|
set(HEADERS
|
|
hlslAttributes.h
|
|
hlslParseHelper.h
|
|
hlslTokens.h
|
|
hlslScanContext.h
|
|
hlslOpMap.h
|
|
hlslTokenStream.h
|
|
hlslGrammar.h
|
|
hlslParseables.h)
|
|
|
|
glslang_pch(SOURCES pch.cpp)
|
|
|
|
add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
if(WIN32 AND BUILD_SHARED_LIBS)
|
|
set_target_properties(HLSL PROPERTIES PREFIX "")
|
|
endif()
|
|
|
|
if(WIN32)
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
|
endif(WIN32)
|
|
|
|
if(ENABLE_GLSLANG_INSTALL)
|
|
if(BUILD_SHARED_LIBS)
|
|
install(TARGETS HLSL EXPORT HLSLTargets
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
else()
|
|
install(TARGETS HLSL EXPORT HLSLTargets
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
endif()
|
|
install(EXPORT HLSLTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
|
endif(ENABLE_GLSLANG_INSTALL)
|