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
c7f18435
Commit
c7f18435
authored
Nov 18, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10087 from mshabunin:small-cmake-fixes
parents
b1d20889
5ebb2347
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
2 deletions
+47
-2
CMakeLists.txt
CMakeLists.txt
+0
-0
OpenCVDetectApacheAnt.cmake
cmake/OpenCVDetectApacheAnt.cmake
+1
-1
OpenCVDetectVTK.cmake
cmake/OpenCVDetectVTK.cmake
+1
-1
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+45
-0
No files found.
CMakeLists.txt
View file @
c7f18435
This diff is collapsed.
Click to expand it.
cmake/OpenCVDetectApacheAnt.cmake
View file @
c7f18435
...
@@ -26,6 +26,6 @@ if(ANT_EXECUTABLE)
...
@@ -26,6 +26,6 @@ if(ANT_EXECUTABLE)
string
(
REGEX MATCH
"[0-9]+.[0-9]+.[0-9]+"
ANT_VERSION
"
${
ANT_VERSION_FULL
}
"
)
string
(
REGEX MATCH
"[0-9]+.[0-9]+.[0-9]+"
ANT_VERSION
"
${
ANT_VERSION_FULL
}
"
)
set
(
ANT_VERSION
"
${
ANT_VERSION
}
"
CACHE INTERNAL
"Detected ant vesion"
)
set
(
ANT_VERSION
"
${
ANT_VERSION
}
"
CACHE INTERNAL
"Detected ant vesion"
)
message
(
STATUS
"Found apache ant
${
ANT_VERSION
}
:
${
ANT_EXECUTABLE
}
"
)
message
(
STATUS
"Found apache ant
:
${
ANT_EXECUTABLE
}
(
${
ANT_VERSION
}
)
"
)
endif
()
endif
()
endif
()
endif
()
cmake/OpenCVDetectVTK.cmake
View file @
c7f18435
...
@@ -57,4 +57,4 @@ if(HAVE_QT AND ${VTK_VERSION} VERSION_GREATER "6.0.0" AND NOT ${VTK_QT_VERSION}
...
@@ -57,4 +57,4 @@ if(HAVE_QT AND ${VTK_VERSION} VERSION_GREATER "6.0.0" AND NOT ${VTK_QT_VERSION}
endif
()
endif
()
set
(
HAVE_VTK ON
)
set
(
HAVE_VTK ON
)
message
(
STATUS
"Found VTK
ver.
${
VTK_VERSION
}
(usefile:
${
VTK_USE_FILE
}
)"
)
message
(
STATUS
"Found VTK
${
VTK_VERSION
}
(
${
VTK_USE_FILE
}
)"
)
cmake/OpenCVUtils.cmake
View file @
c7f18435
...
@@ -600,6 +600,51 @@ endfunction()
...
@@ -600,6 +600,51 @@ endfunction()
endif
()
# NOT DEFINED CMAKE_ARGC
endif
()
# NOT DEFINED CMAKE_ARGC
#
# Generate a list of enabled features basing on conditions:
# IF <cond> THEN <title>: check condition and append title to the result if it is true
# ELSE <title>: return provided value instead of empty result
# EXCLUSIVE: break after first successful condition
#
# Usage:
# ocv_build_features_string(out [EXLUSIVE] [IF feature THEN title] ... [ELSE title])
#
function
(
ocv_build_features_string out
)
set
(
result
)
list
(
REMOVE_AT ARGV 0
)
foreach
(
arg
${
ARGV
}
)
if
(
arg STREQUAL
"EXCLUSIVE"
)
set
(
exclusive TRUE
)
elseif
(
arg STREQUAL
"IF"
)
set
(
then FALSE
)
set
(
cond
)
elseif
(
arg STREQUAL
"THEN"
)
set
(
then TRUE
)
set
(
title
)
elseif
(
arg STREQUAL
"ELSE"
)
set
(
then FALSE
)
set
(
else TRUE
)
else
()
if
(
then
)
if
(
${
cond
}
)
list
(
APPEND result
"
${
arg
}
"
)
if
(
exclusive
)
break
()
endif
()
endif
()
elseif
(
else
)
if
(
NOT result
)
set
(
result
"
${
arg
}
"
)
endif
()
else
()
list
(
APPEND cond
${
arg
}
)
endif
()
endif
()
endforeach
()
set
(
${
out
}
${
result
}
PARENT_SCOPE
)
endfunction
()
# remove all matching elements from the list
# remove all matching elements from the list
macro
(
ocv_list_filterout lst regex
)
macro
(
ocv_list_filterout lst regex
)
foreach
(
item
${${
lst
}}
)
foreach
(
item
${${
lst
}}
)
...
...
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