Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
1e729e7c
There was an error fetching the commit references. Please try again later.
Commit
1e729e7c
authored
10 years ago
by
archshift
Browse files
Options
Downloads
Patches
Plain Diff
Added FindGLEW to cmake-modules
parent
7817d6c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
externals/cmake-modules/FindGLEW.cmake
+47
-0
47 additions, 0 deletions
externals/cmake-modules/FindGLEW.cmake
with
48 additions
and
1 deletion
CMakeLists.txt
+
1
−
1
View file @
1e729e7c
...
...
@@ -12,6 +12,7 @@ add_definitions(-DSINGLETHREADED)
add_definitions
(
${
GCC_COMPILE_FLAGS
}
)
# dependency checking
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/externals/cmake-modules/"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/CMakeTests
)
include
(
FindX11 REQUIRED
)
find_package
(
PkgConfig REQUIRED
)
...
...
@@ -48,7 +49,6 @@ if(NOT DISABLE_QT4)
endif
()
# generate git revision information
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/externals/cmake-modules/"
)
include
(
GetGitRevisionDescription
)
get_git_head_revision
(
GIT_REF_SPEC GIT_REV
)
git_describe
(
GIT_DESC --always --long --dirty
)
...
...
This diff is collapsed.
Click to expand it.
externals/cmake-modules/FindGLEW.cmake
0 → 100644
+
47
−
0
View file @
1e729e7c
#
# Try to find GLEW library and include path.
# Once done this will define
#
# GLEW_FOUND
# GLEW_INCLUDE_PATH
# GLEW_LIBRARY
#
IF
(
WIN32
)
FIND_PATH
(
GLEW_INCLUDE_PATH GL/glew.h
$ENV{PROGRAMFILES}/GLEW/include
${
PROJECT_SOURCE_DIR
}
/src/nvgl/glew/include
DOC
"The directory where GL/glew.h resides"
)
FIND_LIBRARY
(
GLEW_LIBRARY
NAMES glew GLEW glew32 glew32s
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${
PROJECT_SOURCE_DIR
}
/src/nvgl/glew/bin
${
PROJECT_SOURCE_DIR
}
/src/nvgl/glew/lib
DOC
"The GLEW library"
)
ELSE
(
WIN32
)
FIND_PATH
(
GLEW_INCLUDE_PATH GL/glew.h
/usr/include
/usr/local/include
/sw/include
/opt/local/include
DOC
"The directory where GL/glew.h resides"
)
FIND_LIBRARY
(
GLEW_LIBRARY
NAMES GLEW glew
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
DOC
"The GLEW library"
)
ENDIF
(
WIN32
)
IF
(
GLEW_INCLUDE_PATH
)
SET
(
GLEW_FOUND 1 CACHE STRING
"Set to 1 if GLEW is found, 0 otherwise"
)
ELSE
(
GLEW_INCLUDE_PATH
)
SET
(
GLEW_FOUND 0 CACHE STRING
"Set to 1 if GLEW is found, 0 otherwise"
)
ENDIF
(
GLEW_INCLUDE_PATH
)
MARK_AS_ADVANCED
(
GLEW_FOUND
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment