Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eigen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Eigen
Commits
691fb926
Commit
691fb926
authored
12 years ago
by
Gael Guennebaud
Browse files
Options
Downloads
Patches
Plain Diff
Disable opengl demo if Qt4 or OpenGL cannot be found.
(transplanted from
caf24f1c
)
parent
aa858cb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demos/opengl/CMakeLists.txt
+21
-13
21 additions, 13 deletions
demos/opengl/CMakeLists.txt
with
21 additions
and
13 deletions
demos/opengl/CMakeLists.txt
+
21
−
13
View file @
691fb926
find_package
(
Qt4
REQUIRED
)
find_package
(
OpenGL
REQUIRED
)
find_package
(
Qt4
)
find_package
(
OpenGL
)
set
(
QT_USE_QTOPENGL TRUE
)
include
(
${
QT_USE_FILE
}
)
if
(
QT4_FOUND AND OPENGL_FOUND
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
set
(
QT_USE_QTOPENGL TRUE
)
include
(
${
QT_USE_FILE
}
)
include_directories
(
${
QT_INCLUDE_DIR
}
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
set
(
quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp
)
include_directories
(
${
QT_INCLUDE_DIR
}
)
qt4_automoc
(
${
quaternion_demo
_SRCS
}
)
set
(
quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp
quaternion_demo
.cpp
)
add_executable
(
quaternion_demo
${
quaternion_demo_SRCS
}
)
add_dependencies
(
demos quaternion_demo
)
qt4_automoc
(
${
quaternion_demo_SRCS
}
)
target_link_libraries
(
quaternion_demo
${
QT_QTCORE_LIBRARY
}
${
QT_QTGUI_LIBRARY
}
${
QT_QTOPENGL_LIBRARY
}
${
OPENGL_LIBRARIES
}
)
add_executable
(
quaternion_demo
${
quaternion_demo_SRCS
}
)
add_dependencies
(
demos quaternion_demo
)
target_link_libraries
(
quaternion_demo
${
QT_QTCORE_LIBRARY
}
${
QT_QTGUI_LIBRARY
}
${
QT_QTOPENGL_LIBRARY
}
${
OPENGL_LIBRARIES
}
)
else
()
message
(
STATUS
"OpenGL demo disabled because Qt4 and/or OpenGL have not been found."
)
endif
()
\ No newline at end of file
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