From a247f7d797c3bde19c51a21c28e46e540d277d22 Mon Sep 17 00:00:00 2001 From: Nicholas Vitovitch Date: Tue, 2 Feb 2016 04:45:30 +0100 Subject: [PATCH] Include imported targets into module config file --- src/glfw3Config.cmake.in | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/glfw3Config.cmake.in b/src/glfw3Config.cmake.in index d34df06f..1fa200e2 100644 --- a/src/glfw3Config.cmake.in +++ b/src/glfw3Config.cmake.in @@ -1,15 +1 @@ -# - Config file for the glfw3 package -# It defines the following variables -# GLFW3_INCLUDE_DIR, the path where GLFW headers are located -# GLFW3_LIBRARY_DIR, folder in which the GLFW library is located -# GLFW3_LIBRARY, library to link against to use GLFW - -set(GLFW3_VERSION "@GLFW_VERSION_FULL@") - -@PACKAGE_INIT@ - -set_and_check(GLFW3_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/include") -set_and_check(GLFW3_LIBRARY_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@") - -find_library(GLFW3_LIBRARY "@GLFW_LIB_NAME@" HINTS ${GLFW3_LIBRARY_DIR}) - +include("${CMAKE_CURRENT_LIST_DIR}/glfw3Targets.cmake")