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
db6d94a7
Commit
db6d94a7
authored
Aug 26, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: minimize MSVS projects layout
Also put "object" targets to off by default (they doesn't work well)
parent
55401767
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+4
-0
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+1
-1
CMakeLists.txt
modules/core/CMakeLists.txt
+4
-2
No files found.
cmake/OpenCVModule.cmake
View file @
db6d94a7
...
...
@@ -779,6 +779,8 @@ macro(_ocv_create_module)
endforeach
()
endif
()
source_group
(
"Include"
FILES
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/opencv2/opencv_modules.hpp"
)
source_group
(
"Src"
FILES
"
${${
the_module
}
_pch
}
"
)
ocv_add_library
(
${
the_module
}
${
OPENCV_MODULE_TYPE
}
${
OPENCV_MODULE_
${
the_module
}
_HEADERS
}
${
OPENCV_MODULE_
${
the_module
}
_SOURCES
}
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/opencv2/opencv_modules.hpp"
${${
the_module
}
_pch
}
${
sub_objs
}
)
...
...
@@ -1015,6 +1017,7 @@ function(ocv_add_perf_tests)
get_native_precompiled_header
(
${
the_target
}
perf_precomp.hpp
)
endif
()
source_group
(
"Src"
FILES
"
${${
the_target
}
_pch
}
"
)
ocv_add_executable
(
${
the_target
}
${
OPENCV_PERF_
${
the_module
}
_SOURCES
}
${${
the_target
}
_pch
}
)
ocv_target_include_modules
(
${
the_target
}
${
perf_deps
}
"
${
perf_path
}
"
)
ocv_target_link_libraries
(
${
the_target
}
${
perf_deps
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_LINKER_LIBS
}
)
...
...
@@ -1091,6 +1094,7 @@ function(ocv_add_accuracy_tests)
get_native_precompiled_header
(
${
the_target
}
test_precomp.hpp
)
endif
()
source_group
(
"Src"
FILES
"
${${
the_target
}
_pch
}
"
)
ocv_add_executable
(
${
the_target
}
${
OPENCV_TEST_
${
the_module
}
_SOURCES
}
${${
the_target
}
_pch
}
)
ocv_target_include_modules
(
${
the_target
}
${
test_deps
}
"
${
test_path
}
"
)
ocv_target_link_libraries
(
${
the_target
}
${
test_deps
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
${
OPENCV_LINKER_LIBS
}
)
...
...
cmake/OpenCVUtils.cmake
View file @
db6d94a7
...
...
@@ -815,7 +815,7 @@ function(ocv_add_library target)
add_library
(
${
target
}
${
ARGN
}
${
cuda_objs
}
)
# Add OBJECT library (added in cmake 2.8.8) to use in compound modules
if
(
NOT CMAKE_VERSION VERSION_LESS
"2.8.8"
if
(
NOT CMAKE_VERSION VERSION_LESS
"2.8.8"
AND OPENCV_ENABLE_OBJECT_TARGETS
AND NOT OPENCV_MODULE_
${
target
}
_CHILDREN
AND NOT OPENCV_MODULE_
${
target
}
_CLASS STREQUAL
"BINDINGS"
AND NOT
${
target
}
STREQUAL
"opencv_ts"
...
...
modules/core/CMakeLists.txt
View file @
db6d94a7
...
...
@@ -22,8 +22,10 @@ endif()
file
(
GLOB lib_cuda_hdrs
"include/opencv2/
${
name
}
/cuda/*.hpp"
"include/opencv2/
${
name
}
/cuda/*.h"
)
file
(
GLOB lib_cuda_hdrs_detail
"include/opencv2/
${
name
}
/cuda/detail/*.hpp"
"include/opencv2/
${
name
}
/cuda/detail/*.h"
)
source_group
(
"Cuda Headers"
FILES
${
lib_cuda_hdrs
}
)
source_group
(
"Cuda Headers
\\
Detail"
FILES
${
lib_cuda_hdrs_detail
}
)
source_group
(
"Include
\\
Cuda Headers"
FILES
${
lib_cuda_hdrs
}
)
source_group
(
"Include
\\
Cuda Headers
\\
Detail"
FILES
${
lib_cuda_hdrs_detail
}
)
source_group
(
"Src"
FILES
"
${
OPENCV_MODULE_opencv_core_BINARY_DIR
}
/version_string.inc"
)
ocv_glob_module_sources
(
SOURCES
"
${
OPENCV_MODULE_opencv_core_BINARY_DIR
}
/version_string.inc"
HEADERS
${
lib_cuda_hdrs
}
${
lib_cuda_hdrs_detail
}
)
...
...
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