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
238a3806
Commit
238a3806
authored
Sep 24, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12632 from mshabunin:move-opengl-sample
parents
a07a4cef
a0211a1c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
15 deletions
+9
-15
CMakeLists.txt
samples/cpp/CMakeLists.txt
+0
-3
CMakeLists.txt
samples/gpu/CMakeLists.txt
+0
-3
CMakeLists.txt
samples/opengl/CMakeLists.txt
+9
-9
opengl.cpp
samples/opengl/opengl.cpp
+0
-0
No files found.
samples/cpp/CMakeLists.txt
View file @
238a3806
...
...
@@ -27,9 +27,6 @@ endif()
project
(
cpp_samples
)
ocv_include_modules_recurse
(
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
file
(
GLOB_RECURSE cpp_samples RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
if
(
NOT HAVE_OPENGL
)
ocv_list_filterout
(
cpp_samples Qt_sample
)
endif
()
if
(
NOT HAVE_opencv_cudaarithm OR NOT HAVE_opencv_cudafilters
)
ocv_list_filterout
(
cpp_samples
"/gpu/"
)
endif
()
...
...
samples/gpu/CMakeLists.txt
View file @
238a3806
...
...
@@ -50,9 +50,6 @@ if((CV_GCC OR CV_CLANG) AND NOT ENABLE_NOISY_WARNINGS)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-unused-function"
)
endif
()
file
(
GLOB all_samples RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
if
(
NOT HAVE_OPENGL
)
ocv_list_filterout
(
all_samples
"opengl"
)
endif
()
foreach
(
sample_filename
${
all_samples
}
)
ocv_define_sample
(
tgt
${
sample_filename
}
gpu
)
ocv_target_link_libraries
(
${
tgt
}
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CUDA_SAMPLES_REQUIRED_DEPS
}
)
...
...
samples/opengl/CMakeLists.txt
View file @
238a3806
if
(
APPLE
)
return
()
return
()
endif
()
if
(
UNIX
)
find_package
(
X11 QUIET
)
if
(
NOT X11_FOUND
)
message
(
STATUS
"OpenGL samples require development files for libX11"
)
return
()
endif
()
include_directories
(
${
X11_INCLUDE_DIR
}
)
set
(
SAMPLE_LINKER_DEPS
"
${
X11_LIBRARIES
}
"
)
endif
()
SET
(
OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS
...
...
@@ -24,10 +18,16 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
project
(
opengl_samples
)
ocv_include_modules_recurse
(
${
OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS
}
)
file
(
GLOB all_samples RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
if
(
NOT X11_FOUND
)
ocv_list_filterout
(
all_samples
"opengl_interop"
)
endif
()
foreach
(
sample_filename
${
all_samples
}
)
ocv_define_sample
(
tgt
${
sample_filename
}
opengl
)
ocv_target_link_libraries
(
${
tgt
}
${
OPENCV_LINKER_LIBS
}
${
OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS
}
${
SAMPLE_LINKER_DEPS
}
)
ocv_target_link_libraries
(
${
tgt
}
${
OPENCV_LINKER_LIBS
}
${
OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS
}
)
if
(
sample_filename STREQUAL
"opengl_interop.cpp"
)
ocv_target_link_libraries
(
${
tgt
}
${
X11_LIBRARIES
}
)
ocv_target_include_directories
(
${
tgt
}
${
X11_INCLUDE_DIR
}
)
endif
()
endforeach
()
endif
()
...
...
samples/
gpu
/opengl.cpp
→
samples/
opengl
/opengl.cpp
View file @
238a3806
File moved
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