mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-19 17:26:39 +00:00
17b5f9175d
Add option to skip installation
32 lines
720 B
CMake
Executable File
32 lines
720 B
CMake
Executable File
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)
|
|
|
|
add_library(HLSL STATIC ${SOURCES} ${HEADERS})
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
if(WIN32)
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
|
endif(WIN32)
|
|
|
|
if(ENABLE_GLSLANG_INSTALL)
|
|
install(TARGETS HLSL
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
endif(ENABLE_GLSLANG_INSTALL)
|