John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1 | set(SOURCES InitializeDll.cpp InitializeDll.h) |
| 2 | |
| 3 | add_library(OGLCompiler STATIC ${SOURCES}) |
Rohith Chandran | 6206091 | 2017-07-04 10:53:45 -0400 | [diff] [blame] | 4 | set_property(TARGET OGLCompiler PROPERTY FOLDER glslang) |
| 5 | set_property(TARGET OGLCompiler PROPERTY POSITION_INDEPENDENT_CODE ON) |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 6 | |
| 7 | if(WIN32) |
| 8 | source_group("Source" FILES ${SOURCES}) |
| 9 | endif(WIN32) |
| 10 | |
d3x0r | 89de217 | 2017-07-04 06:00:04 -0700 | [diff] [blame] | 11 | if(ENABLE_GLSLANG_INSTALL) |
James Rumble | ab6d149 | 2019-08-06 14:47:51 +0100 | [diff] [blame^] | 12 | install(TARGETS OGLCompiler EXPORT OGLCompilerTargets |
d3x0r | 89de217 | 2017-07-04 06:00:04 -0700 | [diff] [blame] | 13 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
James Rumble | ab6d149 | 2019-08-06 14:47:51 +0100 | [diff] [blame^] | 14 | install(EXPORT OGLCompilerTargets DESTINATION ${LIB_INSTALL_DIR}/cmake) |
d3x0r | 89de217 | 2017-07-04 06:00:04 -0700 | [diff] [blame] | 15 | endif(ENABLE_GLSLANG_INSTALL) |