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
6db9f00f
Commit
6db9f00f
authored
Mar 22, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake(apps): support OPENCV_INSTALL_APPS_LIST
Usage: - cmake -DOPENCV_INSTALL_APPS_LIST=opencv_version ...
parent
7b82ad29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
CMakeLists.txt
apps/CMakeLists.txt
+7
-3
No files found.
apps/CMakeLists.txt
View file @
6db9f00f
add_definitions
(
-D__OPENCV_BUILD=1
)
add_definitions
(
-D__OPENCV_APPS=1
)
string
(
REPLACE
","
";"
OPENCV_INSTALL_APPS_LIST
"
${
OPENCV_INSTALL_APPS_LIST
}
"
)
# support comma-separated list (,) too
# Unified function for creating OpenCV applications:
# ocv_add_application(tgt [MODULES <m1> [<m2> ...]] SRCS <src1> [<src2> ...])
function
(
ocv_add_application the_target
)
...
...
@@ -25,12 +27,14 @@ function(ocv_add_application the_target)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"applications"
)
endif
()
if
(
INSTALL_CREATE_DISTRIB
)
if
(
NOT INSTALL_CREATE_DISTRIB
OR
(
OPENCV_INSTALL_APPS_LIST STREQUAL
"all"
OR
";
${
OPENCV_INSTALL_APPS_LIST
}
;"
MATCHES
";
${
the_target
}
;"
)
)
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
COMPONENT dev
)
elseif
(
INSTALL_CREATE_DISTRIB
)
if
(
BUILD_SHARED_LIBS
)
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
CONFIGURATIONS Release COMPONENT dev
)
endif
()
else
()
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
COMPONENT dev
)
endif
()
endfunction
()
...
...
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