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
d25b0414
Commit
d25b0414
authored
Aug 16, 2017
by
Alexander Alekhin
Committed by
Alexander Alekhin
Aug 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: CMP0022 NEW
parent
268d17e0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
25 deletions
+19
-25
CMakeLists.txt
CMakeLists.txt
+0
-4
FindCUDA.cmake
cmake/FindCUDA.cmake
+6
-6
OpenCVDetectAndroidSDK.cmake
cmake/OpenCVDetectAndroidSDK.cmake
+1
-1
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+4
-4
CMakeLists.txt
modules/highgui/CMakeLists.txt
+0
-3
CMakeLists.txt
modules/java/CMakeLists.txt
+7
-6
CMakeLists.txt
modules/viz/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
d25b0414
...
@@ -44,10 +44,6 @@ else()
...
@@ -44,10 +44,6 @@ else()
cmake_minimum_required
(
VERSION 2.8.12.2
)
cmake_minimum_required
(
VERSION 2.8.12.2
)
endif
()
endif
()
if
(
POLICY CMP0022
)
cmake_policy
(
SET CMP0022 OLD
)
endif
()
if
(
POLICY CMP0026
)
if
(
POLICY CMP0026
)
# silence cmake 3.0+ warnings about reading LOCATION attribute
# silence cmake 3.0+ warnings about reading LOCATION attribute
cmake_policy
(
SET CMP0026 OLD
)
cmake_policy
(
SET CMP0026 OLD
)
...
...
cmake/FindCUDA.cmake
View file @
d25b0414
...
@@ -1553,7 +1553,7 @@ macro(CUDA_ADD_LIBRARY cuda_target)
...
@@ -1553,7 +1553,7 @@ macro(CUDA_ADD_LIBRARY cuda_target)
# variable will have been defined.
# variable will have been defined.
CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS
(
"
${
link_file
}
"
${
cuda_target
}
"
${
_options
}
"
"
${${
cuda_target
}
_SEPARABLE_COMPILATION_OBJECTS
}
"
)
CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS
(
"
${
link_file
}
"
${
cuda_target
}
"
${
_options
}
"
"
${${
cuda_target
}
_SEPARABLE_COMPILATION_OBJECTS
}
"
)
target_link_libraries
(
${
cuda_target
}
target_link_libraries
(
${
cuda_target
}
LINK_PRIVATE
${
CUDA_LIBRARIES
}
${
CUDA_LIBRARIES
}
)
)
...
@@ -1597,7 +1597,7 @@ macro(CUDA_ADD_EXECUTABLE cuda_target)
...
@@ -1597,7 +1597,7 @@ macro(CUDA_ADD_EXECUTABLE cuda_target)
# variable will have been defined.
# variable will have been defined.
CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS
(
"
${
link_file
}
"
${
cuda_target
}
"
${
_options
}
"
"
${${
cuda_target
}
_SEPARABLE_COMPILATION_OBJECTS
}
"
)
CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS
(
"
${
link_file
}
"
${
cuda_target
}
"
${
_options
}
"
"
${${
cuda_target
}
_SEPARABLE_COMPILATION_OBJECTS
}
"
)
target_link_libraries
(
${
cuda_target
}
target_link_libraries
(
${
cuda_target
}
LINK_PRIVATE
${
CUDA_LIBRARIES
}
${
CUDA_LIBRARIES
}
)
)
...
@@ -1672,9 +1672,9 @@ endmacro()
...
@@ -1672,9 +1672,9 @@ endmacro()
###############################################################################
###############################################################################
macro
(
CUDA_ADD_CUFFT_TO_TARGET target
)
macro
(
CUDA_ADD_CUFFT_TO_TARGET target
)
if
(
CUDA_BUILD_EMULATION
)
if
(
CUDA_BUILD_EMULATION
)
target_link_libraries
(
${
target
}
${
CUDA_cufftemu_LIBRARY
}
)
target_link_libraries
(
${
target
}
LINK_PRIVATE
${
CUDA_cufftemu_LIBRARY
}
)
else
()
else
()
target_link_libraries
(
${
target
}
${
CUDA_cufft_LIBRARY
}
)
target_link_libraries
(
${
target
}
LINK_PRIVATE
${
CUDA_cufft_LIBRARY
}
)
endif
()
endif
()
endmacro
()
endmacro
()
...
@@ -1685,9 +1685,9 @@ endmacro()
...
@@ -1685,9 +1685,9 @@ endmacro()
###############################################################################
###############################################################################
macro
(
CUDA_ADD_CUBLAS_TO_TARGET target
)
macro
(
CUDA_ADD_CUBLAS_TO_TARGET target
)
if
(
CUDA_BUILD_EMULATION
)
if
(
CUDA_BUILD_EMULATION
)
target_link_libraries
(
${
target
}
${
CUDA_cublasemu_LIBRARY
}
)
target_link_libraries
(
${
target
}
LINK_PRIVATE
${
CUDA_cublasemu_LIBRARY
}
)
else
()
else
()
target_link_libraries
(
${
target
}
${
CUDA_cublas_LIBRARY
}
)
target_link_libraries
(
${
target
}
LINK_PRIVATE
${
CUDA_cublas_LIBRARY
}
)
endif
()
endif
()
endmacro
()
endmacro
()
...
...
cmake/OpenCVDetectAndroidSDK.cmake
View file @
d25b0414
...
@@ -302,7 +302,7 @@ macro(add_android_project target path)
...
@@ -302,7 +302,7 @@ macro(add_android_project target path)
endif
()
endif
()
add_library
(
${
JNI_LIB_NAME
}
SHARED
${
android_proj_jni_files
}
)
add_library
(
${
JNI_LIB_NAME
}
SHARED
${
android_proj_jni_files
}
)
target_link_libraries
(
${
JNI_LIB_NAME
}
${
OPENCV_LINKER_LIBS
}
${
android_proj_NATIVE_DEPS
}
)
target_link_libraries
(
${
JNI_LIB_NAME
}
LINK_PRIVATE
${
OPENCV_LINKER_LIBS
}
${
android_proj_NATIVE_DEPS
}
)
set_target_properties
(
${
JNI_LIB_NAME
}
PROPERTIES
set_target_properties
(
${
JNI_LIB_NAME
}
PROPERTIES
OUTPUT_NAME
"
${
JNI_LIB_NAME
}
"
OUTPUT_NAME
"
${
JNI_LIB_NAME
}
"
...
...
cmake/OpenCVModule.cmake
View file @
d25b0414
...
@@ -578,12 +578,12 @@ macro(ocv_create_module)
...
@@ -578,12 +578,12 @@ macro(ocv_create_module)
${${
the_module
}
_pch
}
)
${${
the_module
}
_pch
}
)
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
LINK_PUBLIC
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
LINK_
INTERFACE_LIBRARIES
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
LINK_
PUBLIC
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
set
(
extra_deps
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
set
(
extra_deps
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
ocv_extract_simple_libs
(
extra_deps _simple_deps _other_deps
)
ocv_extract_simple_libs
(
extra_deps _simple_deps _other_deps
)
target_link_libraries
(
${
the_module
}
LINK_
INTERFACE_LIBRARIES
${
_simple_deps
}
)
# this list goes to "export"
target_link_libraries
(
${
the_module
}
LINK_
PRIVATE
${
_simple_deps
}
)
# this list goes to "export"
target_link_libraries
(
${
the_module
}
${
extra_deps
}
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
extra_deps
}
)
endif
()
endif
()
add_dependencies
(
opencv_modules
${
the_module
}
)
add_dependencies
(
opencv_modules
${
the_module
}
)
...
...
modules/highgui/CMakeLists.txt
View file @
d25b0414
...
@@ -293,9 +293,6 @@ if(MSVC)
...
@@ -293,9 +293,6 @@ if(MSVC)
set_target_properties
(
${
the_module
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG"
)
set_target_properties
(
${
the_module
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG"
)
endif
()
endif
()
#stop automatic dependencies propagation for this module
set_target_properties
(
${
the_module
}
PROPERTIES LINK_INTERFACE_LIBRARIES
""
)
ocv_add_precompiled_headers
(
${
the_module
}
)
ocv_add_precompiled_headers
(
${
the_module
}
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wno-deprecated-declarations -Wno-clobbered
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wno-deprecated-declarations -Wno-clobbered
)
...
...
modules/java/CMakeLists.txt
View file @
d25b0414
...
@@ -314,18 +314,20 @@ if(BUILD_FAT_JAVA_LIB)
...
@@ -314,18 +314,20 @@ if(BUILD_FAT_JAVA_LIB)
endif
()
endif
()
if
(
APPLE
)
if
(
APPLE
)
foreach
(
_dep
${
__deps
}
)
foreach
(
_dep
${
__deps
}
)
target_link_libraries
(
${
the_module
}
-Wl,-force_load
"
${
_dep
}
"
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
-Wl,-force_load
"
${
_dep
}
"
)
endforeach
()
endforeach
()
else
()
else
()
target_link_libraries
(
${
the_module
}
-Wl,-whole-archive
${
__deps
}
-Wl,-no-whole-archive
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
-Wl,-whole-archive
${
__deps
}
-Wl,-no-whole-archive
)
endif
()
endif
()
target_link_libraries
(
${
the_module
}
${
__extradeps
}
${
OPENCV_LINKER_LIBS
}
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
__extradeps
}
${
OPENCV_LINKER_LIBS
}
)
else
()
else
()
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_LINKER_LIBS
}
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_LINKER_LIBS
}
)
endif
()
endif
()
if
(
ANDROID
)
if
(
ANDROID
)
target_link_libraries
(
${
the_module
}
jnigraphics
)
# for Mat <=> Bitmap converters
target_link_libraries
(
${
the_module
}
LINK_PUBLIC jnigraphics
)
# for Mat <=> Bitmap converters
target_link_libraries
(
${
the_module
}
LINK_PUBLIC log dl z
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_LINKER_LIBS
}
)
# force strip library after the build command
# force strip library after the build command
# because samples and tests will make a copy of the library before install
# because samples and tests will make a copy of the library before install
...
@@ -343,7 +345,6 @@ set_target_properties(${the_module} PROPERTIES
...
@@ -343,7 +345,6 @@ set_target_properties(${the_module} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
LIBRARY_OUTPUT_PATH
}
LIBRARY_OUTPUT_DIRECTORY
${
LIBRARY_OUTPUT_PATH
}
RUNTIME_OUTPUT_DIRECTORY
${
EXECUTABLE_OUTPUT_PATH
}
RUNTIME_OUTPUT_DIRECTORY
${
EXECUTABLE_OUTPUT_PATH
}
INSTALL_NAME_DIR
${
OPENCV_LIB_INSTALL_PATH
}
INSTALL_NAME_DIR
${
OPENCV_LIB_INSTALL_PATH
}
LINK_INTERFACE_LIBRARIES
""
)
)
if
(
WIN32
)
if
(
WIN32
)
...
...
modules/viz/CMakeLists.txt
View file @
d25b0414
...
@@ -7,7 +7,7 @@ set(the_description "Viz")
...
@@ -7,7 +7,7 @@ set(the_description "Viz")
ocv_define_module
(
viz opencv_core
${
VTK_LIBRARIES
}
)
ocv_define_module
(
viz opencv_core
${
VTK_LIBRARIES
}
)
if
(
APPLE AND BUILD_opencv_viz
)
if
(
APPLE AND BUILD_opencv_viz
)
target_link_libraries
(
opencv_viz
"-framework Cocoa"
)
target_link_libraries
(
opencv_viz
LINK_PRIVATE
"-framework Cocoa"
)
endif
()
endif
()
if
(
TARGET opencv_test_viz
)
if
(
TARGET opencv_test_viz
)
...
...
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