mirror of
https://github.com/libretro/glslang.git
synced 2025-01-05 14:48:37 +00:00
db0eaf9887
This adds solution folders that properly group gtest/glslang/hlsl. This also marks gtest options as advanced so they don't show up in cmake-gui by default.
25 lines
483 B
CMake
Executable File
25 lines
483 B
CMake
Executable File
set(SOURCES
|
|
hlslParseHelper.cpp
|
|
hlslScanContext.cpp
|
|
hlslOpMap.cpp
|
|
hlslTokenStream.cpp
|
|
hlslGrammar.cpp)
|
|
|
|
set(HEADERS
|
|
hlslParseHelper.h
|
|
hlslTokens.h
|
|
hlslScanContext.h
|
|
hlslOpMap.h
|
|
hlslTokenStream.h
|
|
hlslGrammar.h)
|
|
|
|
add_library(HLSL STATIC ${SOURCES} ${HEADERS})
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
if(WIN32)
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
|
endif(WIN32)
|
|
|
|
install(TARGETS HLSL
|
|
ARCHIVE DESTINATION lib)
|