diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-08-27 22:11:47 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-08-27 22:11:47 (GMT) |
commit | eb79c56ece95f5508e9ee12326995a84a1f9a5f2 (patch) | |
tree | 72118446d93704377b3e980abc2922a1492dca02 /tests/FindGLEW.cmake | |
parent | b68537b6ac032cb138e4c6225c6be8680f9664f7 (diff) |
allow compilation and running on linux. use SDL for OpenGL dummy window
Diffstat (limited to 'tests/FindGLEW.cmake')
-rw-r--r-- | tests/FindGLEW.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/FindGLEW.cmake b/tests/FindGLEW.cmake index bccb20a..a784990 100644 --- a/tests/FindGLEW.cmake +++ b/tests/FindGLEW.cmake @@ -7,6 +7,9 @@ # GLEW_LIBRARY # +# a few lines of this file are based on the LGPL code found at +# http://openlibraries.org/browser/trunk/FindGLEW.cmake?rev=1383 + IF (WIN32) FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h $ENV{PROGRAMFILES}/GLEW/include @@ -20,15 +23,15 @@ IF (WIN32) ${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib DOC "The GLEW library") ELSE (WIN32) - message(${GLEW_DIR}) + MESSAGE( "-- GLEW_DIR value:" ${GLEW_DIR}) FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h - PATHS + PATHS /usr/include /usr/local/include ${GLEW_DIR}/include NO_DEFAULT_PATH DOC "The directory where GL/glew.h resides") FIND_LIBRARY( GLEW_LIBRARY NAMES GLEW glew - PATHS + PATHS /usr/lib /usr/local/lib ${GLEW_DIR}/lib NO_DEFAULT_PATH DOC "The GLEW library") |