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