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
98849151
Commit
98849151
authored
Jun 27, 2017
by
tribta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formating style and making changes accordingly to review
parent
fd910729
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
CMakeLists.txt
samples/CMakeLists.txt
+0
-2
CMakeLists.txt
samples/java/tutorial_code/CMakeLists.txt
+14
-15
No files found.
samples/CMakeLists.txt
View file @
98849151
...
...
@@ -83,8 +83,6 @@ add_subdirectory(cpp)
add_subdirectory
(
dnn
)
# FIXIT: can't use cvconfig.h in samples: add_subdirectory(gpu)
add_subdirectory
(
java/tutorial_code
)
add_subdirectory
(
opencl
)
if
(
WIN32
)
...
...
samples/java/tutorial_code/CMakeLists.txt
View file @
98849151
...
...
@@ -2,7 +2,7 @@
# CMake file for Java tutorials compilation.
#
# ----------------------------------------------------------------------------
if
(
NOT ANT_EXECUTABLE
)
if
(
NOT ANT_EXECUTABLE
OR NOT TARGET opencv_java
)
return
()
endif
()
...
...
@@ -10,31 +10,30 @@ project(compile_java_tutorials)
set
(
curdir
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
set
(
opencv_tutorial_java_bin_dir
"
${
CMAKE_CURRENT_BINARY_DIR
}
/.compiled"
)
set
(
target_name
"compile_java_tutorials"
)
set
(
TUTORIALS_DIRS
""
)
FILE
(
GLOB children RELATIVE
${
curdir
}
${
curdir
}
/*/*
)
FOREACH
(
child
${
children
}
)
file
(
GLOB children RELATIVE
${
curdir
}
${
curdir
}
/*/*
)
foreach
(
child
${
children
}
)
if
(
IS_DIRECTORY
${
curdir
}
/
${
child
}
)
FILE
(
GLOB contains_java_files
"
${
child
}
/*.java"
)
file
(
GLOB contains_java_files
"
${
child
}
/*.java"
)
if
(
contains_java_files
)
LIST
(
APPEND TUTORIALS_DIRS
${
child
}
)
list
(
APPEND TUTORIALS_DIRS
${
child
}
)
endif
()
endif
()
ENDFOREACH
()
endforeach
()
add_custom_target
(
"
${
target_name
}
"
ALL
add_custom_target
(
"
${
PROJECT_NAME
}
"
DEPENDS opencv_java
)
FOREACH
(
tutorial_dir
${
TUTORIALS_DIRS
}
)
get_filename_component
(
tutorial_name
${
tutorial_dir
}
NAME_WE
)
add_custom_command
(
TARGET
"
${
target_name
}
"
foreach
(
TUTORIAL_DIR
${
TUTORIALS_DIRS
}
)
get_filename_component
(
TUTORIAL_NAME
${
TUTORIAL_DIR
}
NAME_WE
)
add_custom_command
(
TARGET
"
${
PROJECT_NAME
}
"
COMMAND
${
ANT_EXECUTABLE
}
-q
-DocvJarDir=
"
${
OpenCV_BINARY_DIR
}
/bin"
-DsrcDir=
"
${
tutorial_dir
}
"
-DdstDir=
"
${
opencv_tutorial_java_bin_dir
}
/
${
tutorial_name
}
"
-DsrcDir=
"
${
TUTORIAL_DIR
}
"
-DdstDir=
"
${
opencv_tutorial_java_bin_dir
}
/
${
TUTORIAL_NAME
}
"
WORKING_DIRECTORY
"
${
curdir
}
"
COMMENT
"Compile the tutorial:
${
tutorial_name
}
"
COMMENT
"Compile the tutorial:
${
TUTORIAL_NAME
}
"
)
ENDFOREACH
()
endforeach
()
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