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
b75b0c82
Commit
b75b0c82
authored
Dec 12, 2014
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install test data on Windows platform too
parent
fd6ef87c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
CMakeLists.txt
CMakeLists.txt
+10
-0
CMakeLists.txt
data/CMakeLists.txt
+2
-9
No files found.
CMakeLists.txt
View file @
b75b0c82
...
...
@@ -294,6 +294,16 @@ if(NOT OPENCV_TEST_INSTALL_PATH)
set
(
OPENCV_TEST_INSTALL_PATH
"
${
OPENCV_BIN_INSTALL_PATH
}
"
)
endif
()
if
(
OPENCV_TEST_DATA_PATH AND NOT OPENCV_TEST_DATA_INSTALL_PATH
)
if
(
ANDROID
)
set
(
OPENCV_TEST_DATA_INSTALL_PATH
"sdk/etc/testdata"
)
elseif
(
WIN32
)
set
(
OPENCV_TEST_DATA_INSTALL_PATH
"testdata"
)
else
()
set
(
OPENCV_TEST_DATA_INSTALL_PATH
"share/OpenCV/testdata"
)
endif
()
endif
()
if
(
ANDROID
)
set
(
LIBRARY_OUTPUT_PATH
"
${
OpenCV_BINARY_DIR
}
/lib/
${
ANDROID_NDK_ABI_NAME
}
"
)
set
(
3P_LIBRARY_OUTPUT_PATH
"
${
OpenCV_BINARY_DIR
}
/3rdparty/lib/
${
ANDROID_NDK_ABI_NAME
}
"
)
...
...
data/CMakeLists.txt
View file @
b75b0c82
...
...
@@ -10,13 +10,5 @@ elseif(NOT WIN32)
endif
()
if
(
INSTALL_TESTS AND OPENCV_TEST_DATA_PATH
)
if
(
ANDROID
)
install
(
DIRECTORY
${
OPENCV_TEST_DATA_PATH
}
DESTINATION sdk/etc/testdata COMPONENT tests
)
elseif
(
NOT WIN32
)
# CPack does not set correct permissions by default, so we do it explicitly.
install
(
DIRECTORY
${
OPENCV_TEST_DATA_PATH
}
DIRECTORY_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
DESTINATION share/OpenCV/testdata COMPONENT tests
)
endif
()
install
(
DIRECTORY
"
${
OPENCV_TEST_DATA_PATH
}
/"
DESTINATION
"
${
OPENCV_TEST_DATA_INSTALL_PATH
}
"
COMPONENT
"tests"
)
endif
()
\ No newline at end of file
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