/[pcsx2_0.9.7]/trunk/cmake/FindGlew.cmake
ViewVC logotype

Contents of /trunk/cmake/FindGlew.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 4 months ago) by william
File size: 1123 byte(s)
committing r3113 initial commit again...
1 #
2 # Try to find GLEW library and include path.
3 # Once done this will define
4 #
5 # GLEW_FOUND
6 # GLEW_INCLUDE_PATH
7 # GLEW_LIBRARY
8 #
9
10 IF (WIN32)
11 FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
12 $ENV{PROGRAMFILES}/GLEW/include
13 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
14 DOC "The directory where GL/glew.h resides")
15 FIND_LIBRARY( GLEW_LIBRARY
16 NAMES glew GLEW glew32 glew32s
17 PATHS
18 $ENV{PROGRAMFILES}/GLEW/lib
19 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
20 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
21 DOC "The GLEW library")
22 ELSE (WIN32)
23 FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
24 /usr/include
25 /usr/local/include
26 /sw/include
27 /opt/local/include
28 DOC "The directory where GL/glew.h resides")
29 FIND_LIBRARY( GLEW_LIBRARY
30 NAMES GLEW glew
31 PATHS
32 /usr/lib64
33 /usr/lib
34 /usr/local/lib64
35 /usr/local/lib
36 /sw/lib
37 /opt/local/lib
38 DOC "The GLEW library")
39 ENDIF (WIN32)
40
41 IF (GLEW_INCLUDE_PATH)
42 SET( GLEW_FOUND 1 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
43 ELSE (GLEW_INCLUDE_PATH)
44 SET( GLEW_FOUND 0 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
45 ENDIF (GLEW_INCLUDE_PATH)
46
47 MARK_AS_ADVANCED( GLEW_FOUND )

  ViewVC Help
Powered by ViewVC 1.1.22