Add glfwConfig module.

This module allows cmake projects to find glfw with FIND_PACKAGE.
This commit is contained in:
Lambert Clara
2013-05-09 15:47:44 +02:00
parent c310d1c47c
commit f6eccf145b
4 changed files with 38 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
set(PACKAGE_VERSION "@GLFW_VERSION_FULL@")
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@GLFW_VERSION_MAJOR@")
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @GLFW_VERSION_MINOR@)
set(PACKAGE_VERSION_EXACT TRUE)
endif()
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()