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
a5c04bae
Commit
a5c04bae
authored
Dec 15, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10326 from alalek:cmake_fixes
parents
70e1b4dd
361bb119
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
CMakeLists.txt
3rdparty/libtiff/CMakeLists.txt
+1
-0
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+5
-0
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+8
-1
CMakeLists.txt
modules/python/bindings/CMakeLists.txt
+1
-0
No files found.
3rdparty/libtiff/CMakeLists.txt
View file @
a5c04bae
...
...
@@ -7,6 +7,7 @@ project(${TIFF_LIBRARY})
include
(
CheckCSourceCompiles
)
include
(
CheckFunctionExists
)
include
(
CheckIncludeFile
)
include
(
CheckTypeSize
)
# Find libm, if available
...
...
cmake/OpenCVModule.cmake
View file @
a5c04bae
...
...
@@ -863,6 +863,11 @@ macro(_ocv_create_module)
ocv_target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
if
(
OPENCV_MODULE_
${
the_module
}
_COMPILE_DEFINITIONS
)
target_compile_definitions
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_COMPILE_DEFINITIONS
}
)
unset
(
OPENCV_MODULE_
${
the_module
}
_COMPILE_DEFINITIONS CACHE
)
endif
()
add_dependencies
(
opencv_modules
${
the_module
}
)
if
(
ENABLE_SOLUTION_FOLDERS
)
...
...
cmake/OpenCVUtils.cmake
View file @
a5c04bae
...
...
@@ -987,7 +987,14 @@ endfunction()
function
(
ocv_target_compile_definitions target
)
_ocv_fix_target
(
target
)
target_compile_definitions
(
${
target
}
${
ARGN
}
)
if
(
NOT TARGET
${
target
}
)
if
(
NOT DEFINED OPENCV_MODULE_
${
target
}
_LOCATION
)
message
(
FATAL_ERROR
"ocv_target_compile_definitions: invalid target: '
${
target
}
'"
)
endif
()
set
(
OPENCV_MODULE_
${
target
}
_COMPILE_DEFINITIONS
${
OPENCV_MODULE_
${
target
}
_COMPILE_DEFINITIONS
}
${
ARGN
}
CACHE INTERNAL
""
FORCE
)
else
()
target_compile_definitions
(
${
target
}
${
ARGN
}
)
endif
()
endfunction
()
...
...
modules/python/bindings/CMakeLists.txt
View file @
a5c04bae
set
(
MODULE_NAME
"python_bindings_generator"
)
set
(
OPENCV_MODULE_IS_PART_OF_WORLD FALSE
)
ocv_add_module
(
${
MODULE_NAME
}
INTERNAL
)
set
(
OPENCV_PYTHON_SIGNATURES_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/pyopencv_signatures.json"
CACHE INTERNAL
""
)
...
...
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