1 add_library(glslang-default-resource-limits
2 ${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp
4 set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
6 target_include_directories(glslang-default-resource-limits
7 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
8 PUBLIC ${PROJECT_SOURCE_DIR}
11 set(SOURCES StandAlone.cpp)
12 set(REMAPPER_SOURCES spirv-remap.cpp)
14 add_executable(glslangValidator ${SOURCES})
15 add_executable(spirv-remap ${REMAPPER_SOURCES})
16 set_property(TARGET glslangValidator PROPERTY FOLDER tools)
17 set_property(TARGET spirv-remap PROPERTY FOLDER tools)
18 glslang_set_link_args(glslangValidator)
19 glslang_set_link_args(spirv-remap)
27 glslang-default-resource-limits)
30 set(LIBRARIES ${LIBRARIES} psapi)
33 set(LIBRARIES ${LIBRARIES} pthread)
37 target_link_libraries(glslangValidator ${LIBRARIES})
38 target_link_libraries(spirv-remap ${LIBRARIES})
41 source_group("Source" FILES ${SOURCES})
44 install(TARGETS glslangValidator
45 RUNTIME DESTINATION bin)
47 install(TARGETS spirv-remap
48 RUNTIME DESTINATION bin)