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
3c99dc96
Commit
3c99dc96
authored
Nov 07, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13001 from rgarnov:gapi_standalone_cmake
parents
b17e1531
c972c946
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
CMakeLists.txt
modules/gapi/CMakeLists.txt
+7
-0
standalone.cmake
modules/gapi/cmake/standalone.cmake
+34
-0
No files found.
modules/gapi/CMakeLists.txt
View file @
3c99dc96
# FIXME: Rework standalone build in more generic maner
# (Restructure directories, add common pass, etc)
if
(
NOT DEFINED OPENCV_INITIAL_PASS
)
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
)
...
...
modules/gapi/cmake/standalone.cmake
0 → 100644
View file @
3c99dc96
if
(
NOT TARGET ade
)
find_package
(
ade 0.1.0 REQUIRED
)
endif
()
set
(
FLUID_TARGET fluid
)
set
(
FLUID_ROOT
"
${
CMAKE_CURRENT_LIST_DIR
}
/../"
)
file
(
GLOB FLUID_includes
"
${
FLUID_ROOT
}
/include/opencv2/*.hpp"
"
${
FLUID_ROOT
}
/include/opencv2/gapi/g*.hpp"
"
${
FLUID_ROOT
}
/include/opencv2/gapi/util/*.hpp"
"
${
FLUID_ROOT
}
/include/opencv2/gapi/own/*.hpp"
"
${
FLUID_ROOT
}
/include/opencv2/gapi/fluid/*.hpp"
)
file
(
GLOB FLUID_sources
"
${
FLUID_ROOT
}
/src/api/g*.cpp"
"
${
FLUID_ROOT
}
/src/compiler/*.cpp"
"
${
FLUID_ROOT
}
/src/compiler/passes/*.cpp"
"
${
FLUID_ROOT
}
/src/executor/*.cpp"
"
${
FLUID_ROOT
}
/src/backends/fluid/*.cpp"
"
${
FLUID_ROOT
}
/src/backends/common/*.cpp"
)
add_library
(
${
FLUID_TARGET
}
STATIC
${
FLUID_includes
}
${
FLUID_sources
}
)
target_include_directories
(
${
FLUID_TARGET
}
PUBLIC $<BUILD_INTERFACE:
${
FLUID_ROOT
}
/include>
PRIVATE
${
FLUID_ROOT
}
/src
)
target_compile_definitions
(
${
FLUID_TARGET
}
PUBLIC -DGAPI_STANDALONE
# This preprocessor definition resolves symbol clash when
# standalone fluid meets gapi ocv module in one application
PUBLIC cv=fluidcv
)
set_target_properties
(
${
FLUID_TARGET
}
PROPERTIES POSITION_INDEPENDENT_CODE True
)
set_property
(
TARGET
${
FLUID_TARGET
}
PROPERTY CXX_STANDARD 11
)
target_link_libraries
(
${
FLUID_TARGET
}
PRIVATE ade
)
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