Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
67658c78
Commit
67658c78
authored
Nov 09, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add FindQGLViewer.cmake
parent
761e1e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
cmake_modules/FindQGLViewer.cmake
cmake_modules/FindQGLViewer.cmake
+61
-0
No files found.
cmake_modules/FindQGLViewer.cmake
0 → 100644
View file @
67658c78
# - Try to find QGLViewer
# Once done this will define
#
# QGLVIEWER_FOUND - system has QGLViewer
# QGLVIEWER_INCLUDE_DIR - the QGLViewer include directory
# QGLVIEWER_LIBRARIES - Link these to use QGLViewer
# QGLVIEWER_DEFINITIONS - Compiler switches required for using QGLViewer
#
find_path
(
QGLVIEWER_INCLUDE_DIR
NAMES QGLViewer/qglviewer.h
PATHS /usr/include
/usr/local/include
ENV QGLVIEWERROOT
)
find_library
(
QGLVIEWER_LIBRARY_RELEASE
NAMES qglviewer-qt4 qglviewer QGLViewer QGLViewer2
PATHS /usr/lib
/usr/local/lib
ENV QGLVIEWERROOT
ENV LD_LIBRARY_PATH
ENV LIBRARY_PATH
PATH_SUFFIXES QGLViewer QGLViewer/release
)
find_library
(
QGLVIEWER_LIBRARY_DEBUG
NAMES dqglviewer dQGLViewer dQGLViewer2
PATHS /usr/lib
/usr/local/lib
ENV QGLVIEWERROOT
ENV LD_LIBRARY_PATH
ENV LIBRARY_PATH
PATH_SUFFIXES QGLViewer QGLViewer/debug
)
if
(
QGLVIEWER_LIBRARY_RELEASE
)
if
(
QGLVIEWER_LIBRARY_DEBUG
)
set
(
QGLVIEWER_LIBRARIES_ optimized
${
QGLVIEWER_LIBRARY_RELEASE
}
debug
${
QGLVIEWER_LIBRARY_DEBUG
}
)
else
()
set
(
QGLVIEWER_LIBRARIES_
${
QGLVIEWER_LIBRARY_RELEASE
}
)
endif
()
set
(
QGLVIEWER_LIBRARIES
${
QGLVIEWER_LIBRARIES_
}
CACHE FILEPATH
"The QGLViewer library"
)
endif
()
IF
(
QGLVIEWER_INCLUDE_DIR AND QGLVIEWER_LIBRARIES
)
SET
(
QGLVIEWER_FOUND TRUE
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DQGLVIEWER_FOUND"
)
ENDIF
(
QGLVIEWER_INCLUDE_DIR AND QGLVIEWER_LIBRARIES
)
IF
(
QGLVIEWER_FOUND
)
IF
(
NOT QGLViewer_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found QGLViewer:
${
QGLVIEWER_LIBRARIES
}
"
)
ENDIF
(
NOT QGLViewer_FIND_QUIETLY
)
ELSE
(
QGLVIEWER_FOUND
)
IF
(
QGLViewer_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find QGLViewer"
)
ENDIF
(
QGLViewer_FIND_REQUIRED
)
ENDIF
(
QGLVIEWER_FOUND
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment