From b5d6cef28f99d7142e7926a9e0dedb87c06b6143 Mon Sep 17 00:00:00 2001 From: abathur puppe Date: Sun, 9 Jun 2024 12:34:31 +0200 Subject: [PATCH] export target --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd567278..1ee04c1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"