Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
091c7a38
Commit
091c7a38
authored
Dec 30, 2014
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenGL interop sample reworked not ot use cvconfig.h
parent
e02418e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
CMakeLists.txt
samples/gpu/CMakeLists.txt
+7
-0
opengl.cpp
samples/gpu/opengl.cpp
+0
-9
No files found.
samples/gpu/CMakeLists.txt
View file @
091c7a38
...
...
@@ -71,6 +71,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
file
(
GLOB all_samples RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
if
(
NOT WITH_OPENGL
)
list
(
REMOVE_ITEM all_samples
"opengl.cpp"
)
endif
(
NOT WITH_OPENGL
)
foreach
(
sample_filename
${
all_samples
}
)
get_filename_component
(
sample
${
sample_filename
}
NAME_WE
)
file
(
GLOB sample_srcs RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
${
sample
}
.*
)
...
...
@@ -82,6 +86,9 @@ endif()
if
(
OCV_DEPENDENCIES_FOUND AND INSTALL_C_EXAMPLES AND NOT WIN32
)
file
(
GLOB install_list *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd
)
if
(
NOT WITH_OPENGL
)
list
(
REMOVE_ITEM all_samples
"opengl.cpp"
)
endif
(
NOT WITH_OPENGL
)
install
(
FILES
${
install_list
}
DESTINATION
${
OPENCV_SAMPLES_SRC_INSTALL_PATH
}
/gpu
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples
)
...
...
samples/gpu/opengl.cpp
View file @
091c7a38
#include <iostream>
#include "cvconfig.h"
#ifndef HAVE_OPENGL
int
main
()
{
std
::
cerr
<<
"Library was built without OpenGL support"
<<
std
::
endl
;
return
-
1
;
}
#else
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN 1
...
...
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