4 # Finds the GLU library
6 # This will define the following variables::
8 # GLU_FOUND - system has GLU
9 # GLU_INCLUDE_DIRS - the GLU include directory
10 # GLU_LIBRARIES - the GLU libraries
11 # GLU_DEFINITIONS - the GLU definitions
15 pkg_check_modules(PC_GLU glu QUIET)
18 find_path(GLU_INCLUDE_DIR NAMES GL/glu.h
19 PATHS ${PC_GLU_INCLUDEDIR})
20 find_library(GLU_LIBRARY NAMES GLU
21 PATHS ${PC_GLU_LIBDIR})
23 include(FindPackageHandleStandardArgs)
24 find_package_handle_standard_args(GLU
25 REQUIRED_VARS GLU_LIBRARY GLU_INCLUDE_DIR)
28 set(GLU_LIBRARIES ${GLU_LIBRARY})
29 set(GLU_INCLUDE_DIRS ${GLU_INCLUDE_DIR})
30 set(GLU_DEFINITIONS -DHAS_GLU=1)
33 mark_as_advanced(GLU_INCLUDE_DIR GLU_LIBRARY)