From ec7aeda6dd854d359e8b231464f883d3b05d4b59 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 31 Oct 2023 20:12:19 -0400 Subject: [PATCH] Export GLFW targets --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b51ae96..9620e6db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,10 @@ if (GLFW_INSTALL) install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + export(EXPORT glfwTargets + FILE ${CMAKE_CURRENT_BINARY_DIR}/src/glfw3Targets.cmake + NAMESPACE "glfw3::") + if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html" DESTINATION "${CMAKE_INSTALL_DOCDIR}")