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
d52ef2f7
Commit
d52ef2f7
authored
Jul 11, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added stub library for cudev module
in order to make CMake scripts work properly
parent
75b86c97
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
20 deletions
+32
-20
CMakeLists.txt
modules/cudev/CMakeLists.txt
+5
-19
stub.cpp
modules/cudev/src/stub.cpp
+11
-0
CMakeLists.txt
modules/cudev/test/CMakeLists.txt
+16
-1
No files found.
modules/cudev/CMakeLists.txt
View file @
d52ef2f7
...
...
@@ -8,28 +8,14 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4189 /wd4505 -Wundef -Wmissing-declarati
ocv_add_module
(
cudev
)
file
(
GLOB_RECURSE lib_hdrs
"include/opencv2/*.hpp"
)
add_custom_target
(
${
the_module
}
SOURCES
${
lib_hdrs
}
)
if
(
ENABLE_SOLUTION_FOLDERS
)
set_target_properties
(
${
the_module
}
PROPERTIES FOLDER
"modules"
)
endif
()
foreach
(
var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG
)
# we remove /EHa as it generates warnings under windows
string
(
REPLACE
"/EHa"
""
${
var
}
"
${${
var
}}
"
)
ocv_module_include_directories
(
opencv_core
)
# we remove -ggdb3 flag as it leads to preprocessor errors when compiling CUDA files (CUDA 4.1
)
string
(
REPLACE
"-ggdb3"
""
${
var
}
"
${${
var
}}
"
)
file
(
GLOB_RECURSE lib_hdrs
"include/opencv2/*.hpp"
)
file
(
GLOB lib_srcs
"src/*.cpp
"
)
# we remove -Wsign-promo as it generates warnings under linux
string
(
REPLACE
"-Wsign-promo"
""
${
var
}
"
${${
var
}}
"
)
ocv_set_module_sources
(
HEADERS
${
lib_hdrs
}
SOURCES
${
lib_srcs
}
)
# we remove -fvisibility-inlines-hidden because it's used for C++ compiler
# but NVCC uses C compiler by default
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
endforeach
()
ocv_create_module
()
if
(
BUILD_TESTS
)
add_subdirectory
(
test
)
...
...
modules/cudev/src/stub.cpp
0 → 100644
View file @
d52ef2f7
#include <opencv2/core/cvdef.h>
namespace
cv
{
namespace
cudev
{
CV_EXPORTS
void
stubFunc
();
}}
void
cv
::
cudev
::
stubFunc
()
{
}
modules/cudev/test/CMakeLists.txt
View file @
d52ef2f7
set
(
test_deps opencv_core opencv_imgproc opencv_highgui opencv_ts
${
OPENCV_MODULE_opencv_ts_DEPS
}
)
set
(
test_deps opencv_c
udev opencv_c
ore opencv_imgproc opencv_highgui opencv_ts
${
OPENCV_MODULE_opencv_ts_DEPS
}
)
ocv_check_dependencies
(
${
test_deps
}
)
...
...
@@ -13,6 +13,21 @@ if(OCV_DEPENDENCIES_FOUND)
source_group
(
"Include"
FILES
${
test_hdrs
}
)
set
(
OPENCV_TEST_
${
the_module
}
_SOURCES
${
test_srcs
}
${
test_hdrs
}
)
foreach
(
var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG
)
# we remove /EHa as it generates warnings under windows
string
(
REPLACE
"/EHa"
""
${
var
}
"
${${
var
}}
"
)
# we remove -ggdb3 flag as it leads to preprocessor errors when compiling CUDA files (CUDA 4.1)
string
(
REPLACE
"-ggdb3"
""
${
var
}
"
${${
var
}}
"
)
# we remove -Wsign-promo as it generates warnings under linux
string
(
REPLACE
"-Wsign-promo"
""
${
var
}
"
${${
var
}}
"
)
# we remove -fvisibility-inlines-hidden because it's used for C++ compiler
# but NVCC uses C compiler by default
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
endforeach
()
CUDA_ADD_EXECUTABLE
(
${
the_target
}
${
OPENCV_TEST_
${
the_module
}
_SOURCES
}
)
target_link_libraries
(
${
the_target
}
${
test_deps
}
${
OPENCV_LINKER_LIBS
}
${
CUDA_LIBRARIES
}
)
add_dependencies
(
opencv_tests
${
the_target
}
)
...
...
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