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
1ddcfc5c
Commit
1ddcfc5c
authored
Dec 06, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gapi: update CMakeLists.txt, fix TBB dependency handling
parent
774d28ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+3
-1
CMakeLists.txt
modules/gapi/CMakeLists.txt
+12
-10
No files found.
cmake/OpenCVUtils.cmake
View file @
1ddcfc5c
...
...
@@ -1412,7 +1412,9 @@ function(ocv_target_link_libraries target)
foreach
(
dep
${
LINK_DEPS
}
)
if
(
"
${
dep
}
"
STREQUAL
"
${
target
}
"
)
# prevent "link to itself" warning (world problem)
elseif
(
"
${
dep
}
"
STREQUAL
" LINK_PRIVATE"
OR
"
${
dep
}
"
STREQUAL
"LINK_PUBLIC"
)
elseif
(
"
${
dep
}
"
STREQUAL
" LINK_PRIVATE"
OR
"
${
dep
}
"
STREQUAL
"LINK_PUBLIC"
OR
"
${
dep
}
"
STREQUAL
" PRIVATE"
OR
"
${
dep
}
"
STREQUAL
"PUBLIC"
)
if
(
NOT LINK_PENDING STREQUAL
""
)
__ocv_push_target_link_libraries
(
${
LINK_MODE
}
${
LINK_PENDING
}
)
set
(
LINK_PENDING
""
)
...
...
modules/gapi/CMakeLists.txt
View file @
1ddcfc5c
# FIXME: Rework standalone build in more generic maner
# (Restructure directories, add common pass, etc)
if
(
NOT DEFINED OPENCV_INITIAL_PASS
)
if
(
NOT DEFINED OPENCV_INITIAL_PASS
)
cmake_minimum_required
(
VERSION 3.3
)
project
(
gapi_standalone
)
include
(
"cmake/standalone.cmake"
)
return
()
endif
()
# FIXME: Remove CXX11 check after complete switch to OpenCV 4 branch
# (CI, bundle, workloads, etc)
if
(
NOT HAVE_CXX11 OR NOT TARGET ade
)
if
(
NOT TARGET ade
)
# can't build G-API because of the above reasons
ocv_module_disable
(
gapi
)
return
()
...
...
@@ -131,9 +129,13 @@ ocv_source_group("Include" FILES ${gapi_ext_hdrs})
ocv_set_module_sources
(
HEADERS
${
gapi_ext_hdrs
}
SOURCES
${
gapi_srcs
}
)
ocv_module_include_directories
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/src"
)
# Note `ade` is not a module name but link dependency for ${the_module}
# (which is opencv_gapi)
ocv_create_module
(
ade
${
INF_ENGINE_TARGET
}
)
ocv_create_module
()
ocv_target_link_libraries
(
${
the_module
}
PRIVATE ade
${
INF_ENGINE_TARGET
}
)
if
(
HAVE_TBB
)
ocv_target_link_libraries
(
${
the_module
}
PRIVATE tbb
)
endif
()
ocv_add_accuracy_tests
(
${
INF_ENGINE_TARGET
}
)
# FIXME: test binary is linked with ADE directly since ADE symbols
# are not exported from libopencv_gapi.so in any form - thus
...
...
@@ -144,17 +146,17 @@ if(TARGET opencv_test_gapi)
target_link_libraries
(
opencv_test_gapi PRIVATE ade
)
endif
()
if
(
HAVE_FREETYPE
)
if
(
HAVE_FREETYPE
)
ocv_target_compile_definitions
(
opencv_gapi PRIVATE -DHAVE_FREETYPE
)
ocv_target_compile_definitions
(
opencv_test_gapi PRIVATE -DHAVE_FREETYPE
)
ocv_target_link_libraries
(
opencv_gapi
LINK_
PRIVATE
${
FREETYPE_LIBRARIES
}
)
ocv_target_link_libraries
(
opencv_gapi PRIVATE
${
FREETYPE_LIBRARIES
}
)
ocv_target_include_directories
(
opencv_gapi PRIVATE
${
FREETYPE_INCLUDE_DIRS
}
)
endif
()
if
(
HAVE_PLAIDML
)
ocv_target_compile_definitions
(
opencv_gapi PRIVATE -DHAVE_PLAIDML
)
ocv_target_compile_definitions
(
opencv_test_gapi PRIVATE -DHAVE_PLAIDML
)
ocv_target_link_libraries
(
opencv_gapi
LINK_
PRIVATE
${
PLAIDML_LIBRARIES
}
)
ocv_target_link_libraries
(
opencv_gapi PRIVATE
${
PLAIDML_LIBRARIES
}
)
ocv_target_include_directories
(
opencv_gapi SYSTEM PRIVATE
${
PLAIDML_INCLUDE_DIRS
}
)
endif
()
...
...
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