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
daead680
Commit
daead680
authored
Jan 29, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to control build of applications (feature #2568)
parent
ab8d92e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
CMakeLists.txt
CMakeLists.txt
+4
-1
CMakeLists.txt
apps/haartraining/CMakeLists.txt
+0
-4
CMakeLists.txt
apps/traincascade/CMakeLists.txt
+0
-4
No files found.
CMakeLists.txt
View file @
daead680
...
...
@@ -149,6 +149,7 @@ OCV_OPTION(WITH_OPENCLAMDBLAS "Include AMD OpenCL BLAS library support" OFF
# OpenCV build components
# ===================================================
OCV_OPTION
(
BUILD_SHARED_LIBS
"Build shared libraries (.dll/.so) instead of static ones (.lib/.a)"
NOT
(
ANDROID OR IOS
)
)
OCV_OPTION
(
BUILD_opencv_apps
"Build utility applications (used for example to train classifiers)"
(
NOT ANDROID
)
IF
(
NOT IOS
)
)
OCV_OPTION
(
BUILD_ANDROID_EXAMPLES
"Build examples for Android platform"
ON IF ANDROID
)
OCV_OPTION
(
BUILD_DOCS
"Create build rules for OpenCV Documentation"
ON
)
OCV_OPTION
(
BUILD_EXAMPLES
"Build all examples"
OFF
)
...
...
@@ -453,7 +454,9 @@ add_subdirectory(doc)
add_subdirectory
(
data
)
# extra applications
add_subdirectory
(
apps
)
if
(
BUILD_opencv_apps
)
add_subdirectory
(
apps
)
endif
()
# examples
if
(
BUILD_EXAMPLES OR BUILD_ANDROID_EXAMPLES OR INSTALL_PYTHON_EXAMPLES
)
...
...
apps/haartraining/CMakeLists.txt
View file @
daead680
if
(
IOS OR ANDROID
)
return
()
endif
()
SET
(
OPENCV_HAARTRAINING_DEPS opencv_core opencv_imgproc opencv_highgui opencv_objdetect opencv_calib3d opencv_video opencv_features2d opencv_flann opencv_legacy
)
ocv_check_dependencies
(
${
OPENCV_HAARTRAINING_DEPS
}
)
...
...
apps/traincascade/CMakeLists.txt
View file @
daead680
if
(
IOS OR ANDROID
)
return
()
endif
()
SET
(
OPENCV_TRAINCASCADE_DEPS opencv_core opencv_ml opencv_imgproc opencv_objdetect opencv_highgui opencv_calib3d opencv_video opencv_features2d opencv_flann opencv_legacy
)
ocv_check_dependencies
(
${
OPENCV_TRAINCASCADE_DEPS
}
)
...
...
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