blob: d257828d69e0def5a205a36b9acda53a79191c17 [file] [log] [blame]
John Kessenich140f3df2015-06-26 16:58:36 -06001set(SOURCES InitializeDll.cpp InitializeDll.h)
2
3add_library(OGLCompiler STATIC ${SOURCES})
Rohith Chandran62060912017-07-04 10:53:45 -04004set_property(TARGET OGLCompiler PROPERTY FOLDER glslang)
5set_property(TARGET OGLCompiler PROPERTY POSITION_INDEPENDENT_CODE ON)
John Kessenich140f3df2015-06-26 16:58:36 -06006
7if(WIN32)
8 source_group("Source" FILES ${SOURCES})
9endif(WIN32)
10
d3x0r89de2172017-07-04 06:00:04 -070011if(ENABLE_GLSLANG_INSTALL)
James Rumbleab6d1492019-08-06 14:47:51 +010012 install(TARGETS OGLCompiler EXPORT OGLCompilerTargets
d3x0r89de2172017-07-04 06:00:04 -070013 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
James Rumbleab6d1492019-08-06 14:47:51 +010014 install(EXPORT OGLCompilerTargets DESTINATION ${LIB_INSTALL_DIR}/cmake)
d3x0r89de2172017-07-04 06:00:04 -070015endif(ENABLE_GLSLANG_INSTALL)