export target

This commit is contained in:
abathur puppe 2024-06-09 12:34:31 +02:00
parent 33b4a621a6
commit b5d6cef28f

View file

@ -270,6 +270,11 @@ if (GLM_BUILD_INSTALL)
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glm"
FILE glmConfig.cmake
)
export(
TARGETS glm glm-header-only
NAMESPACE glm::
FILE "${CMAKE_INSTALL_DATAROOTDIR}/glm/glmConfig.cmake"
)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake"