mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Add glfwConfig module.
This module allows cmake projects to find glfw with FIND_PACKAGE.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# - Config file for the glfw package
|
||||
# It defines the following variables
|
||||
# GLFW_INCLUDE_DIR, the path where GLFW headers are located
|
||||
# GLFW_LIBRARY_DIR, folder in which the GLFW library is located
|
||||
# GLFW_LIBRARY, library to link against to use GLFW
|
||||
|
||||
set(GLFW_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include")
|
||||
set(GLFW_LIBRARY_DIR "@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@")
|
||||
|
||||
find_library(GLFW_LIBRARY "@GLFW_LIB_NAME@" HINTS ${GLFW_LIBRARY_DIR})
|
||||
Reference in New Issue
Block a user