Merge pull request #1866 from rumblehhh/master
authorJohn Kessenich <johnkslang@users.noreply.github.com>
Tue, 15 Oct 2019 10:25:20 +0000 (04:25 -0600)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2019 10:25:20 +0000 (04:25 -0600)
Export glslang targets on installation

1  2 
SPIRV/CMakeLists.txt
glslang/CMakeLists.txt

@@@ -80,12 -94,15 +84,15 @@@ if(ENABLE_GLSLANG_INSTALL
                  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
      else()
          if (ENABLE_SPVREMAPPER)
-             install(TARGETS SPVRemapper
+             install(TARGETS SPVRemapper EXPORT SPVRemapperTargets
                      ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
          endif()
-         install(TARGETS SPIRV
+         install(TARGETS SPIRV EXPORT SPIRVTargets
                  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
      endif()
+       
+       install(EXPORT SPVRemapperTargets DESTINATION lib/cmake)
+       install(EXPORT SPIRVTargets DESTINATION lib/cmake)
  
 -    install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/)
 +    install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glslang/SPIRV/)
  endif(ENABLE_GLSLANG_INSTALL)
Simple merge