third_party/glslang/OGLCompilersDLL/tnt/CMakeLists.txt
raw| 1 | set(SOURCES ../InitializeDll.cpp ../InitializeDll.h) |
| 2 | |
| 3 | add_library(OGLCompiler STATIC ${SOURCES}) |
| 4 | set_property(TARGET OGLCompiler PROPERTY FOLDER glslang) |
| 5 | set_property(TARGET OGLCompiler PROPERTY POSITION_INDEPENDENT_CODE ON) |
| 6 | |
| 7 | if(WIN32) |
| 8 | source_group("Source" FILES ${SOURCES}) |
| 9 | endif(WIN32) |
| 10 | |
| 11 | if(ENABLE_GLSLANG_INSTALL) |
| 12 | install(TARGETS OGLCompiler |
| 13 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 14 | endif(ENABLE_GLSLANG_INSTALL) |