blob: 38cb2bdbba161534f0217df4eabcbffbd72f46b3 [file] [log] [blame]
John Kessenich140f3df2015-06-26 16:58:36 -06001cmake_minimum_required(VERSION 2.8)
2
John Kessenich140f3df2015-06-26 16:58:36 -06003set(SOURCES StandAlone.cpp)
4set(REMAPPER_SOURCES spirv-remap.cpp)
5
6add_executable(glslangValidator ${SOURCES})
7add_executable(spirv-remap ${REMAPPER_SOURCES})
8
9set(LIBRARIES
10 glslang
11 OGLCompiler
12 OSDependent
13 SPIRV)
14
15if(WIN32)
16 set(LIBRARIES ${LIBRARIES} psapi)
17elseif(UNIX)
Andrew Woloszyn8b64fa52015-08-17 11:39:38 -040018 if(NOT ANDROID)
19 set(LIBRARIES ${LIBRARIES} pthread)
20 endif()
John Kessenich140f3df2015-06-26 16:58:36 -060021endif(WIN32)
22
23target_link_libraries(glslangValidator ${LIBRARIES})
24target_link_libraries(spirv-remap ${LIBRARIES})
25
26if(WIN32)
27 source_group("Source" FILES ${SOURCES})
28endif(WIN32)
29
30install(TARGETS glslangValidator
31 RUNTIME DESTINATION bin)
32
33install(TARGETS spirv-remap
34 RUNTIME DESTINATION bin)