mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Export GLFW targets
This commit is contained in:
parent
3eaf1255b2
commit
ec7aeda6dd
@ -152,6 +152,10 @@ if (GLFW_INSTALL)
|
|||||||
install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc"
|
install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc"
|
||||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
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)
|
if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS)
|
||||||
install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html"
|
install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html"
|
||||||
DESTINATION "${CMAKE_INSTALL_DOCDIR}")
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}")
|
||||||
|
Loading…
Reference in New Issue
Block a user