Export glslang targets on installation
This allows the targets to be used in other cmake projects. See the following for more details: https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-packages https://foonathan.net/blog/2016/07/07/cmake-dependency-handling.html
This commit is contained in:
parent
3cea2e5882
commit
ab6d1499e1
8 changed files with 28 additions and 15 deletions
|
|
@ -9,6 +9,7 @@ if(WIN32)
|
|||
endif(WIN32)
|
||||
|
||||
if(ENABLE_GLSLANG_INSTALL)
|
||||
install(TARGETS OGLCompiler
|
||||
install(TARGETS OGLCompiler EXPORT OGLCompilerTargets
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(EXPORT OGLCompilerTargets DESTINATION ${LIB_INSTALL_DIR}/cmake)
|
||||
endif(ENABLE_GLSLANG_INSTALL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue