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
a44d6aac
Commit
a44d6aac
authored
Jun 30, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android tests are included into cmake build
parent
7f115db7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
CMakeLists.txt
modules/java/CMakeLists.txt
+24
-0
default.properties
modules/java/android_test/default.properties
+1
-10
No files found.
modules/java/CMakeLists.txt
View file @
a44d6aac
...
...
@@ -136,5 +136,29 @@ foreach(java_file ${java_project_files} ${generated_java_sources})
endif
()
endforeach
()
#android test project
if
(
ANDROID AND BUILD_TESTS AND CAN_BUILD_ANDROID_PROJECTS
)
SET
(
test_dir
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_test"
)
SET
(
test_target OpenCV_JavaAPI_Tests
)
add_custom_target
(
${
test_target
}
ALL
)
add_dependencies
(
${
test_target
}
opencv_java opencv_java_api
)
file
(
RELATIVE_PATH OPENCV_REFERENCE_PATH
"
${
test_dir
}
"
"
${
CMAKE_BINARY_DIR
}
"
)
add_custom_command
(
TARGET
${
test_target
}
WORKING_DIRECTORY
${
test_dir
}
COMMAND
${
CMAKE_COMMAND
}
-E remove -f
"
${
test_dir
}
/default.properties"
COMMAND
${
CMAKE_COMMAND
}
-E touch
"
${
test_dir
}
/default.properties"
COMMAND
${
ANDROID_EXECUTABLE
}
update project --name
"
${
test_target
}
"
--target 7 --library
"
${
OPENCV_REFERENCE_PATH
}
"
--path .
COMMAND
${
ANT_EXECUTABLE
}
debug
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
test_dir
}
/bin/
${
test_target
}
-debug.apk"
"
${
CMAKE_BINARY_DIR
}
/bin/
${
test_target
}
-debug.apk"
)
LIST
(
APPEND additional_clean_files
"
${
CMAKE_BINARY_DIR
}
/bin/
${
test_target
}
-debug.apk"
"
${
test_dir
}
/build.xml"
"
${
test_dir
}
/local.properties"
"
${
test_dir
}
/proguard.cfg"
)
endif
()
set_directory_properties
(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"
${
additional_clean_files
}
"
)
modules/java/android_test/default.properties
View file @
a44d6aac
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
android.library.reference.1
=
../../../android/build
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