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
37d9c3f8
Commit
37d9c3f8
authored
May 21, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some corner cases of opencv_world configuration
parent
13a79c75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
CMakeLists.txt
modules/world/CMakeLists.txt
+16
-9
No files found.
modules/world/CMakeLists.txt
View file @
37d9c3f8
set
(
the_description
"All the selected OpenCV modules in a single binary"
)
set
(
OPENCV_MODULE_IS_PART_OF_WORLD FALSE
)
set
(
BUILD_opencv_world_INIT OFF
)
set
(
OPENCV_MODULE_TYPE SHARED
)
ocv_add_module
(
world opencv_core
)
...
...
@@ -41,21 +42,27 @@ foreach(m ${OPENCV_MODULE_${the_module}_DEPS})
endif
()
string
(
REGEX REPLACE
"<MODULE_NAME>"
"
${
m
}
"
objpath1
"
${${
m
}
_BINARY_DIR
}
/
${
objpath0
}
"
)
foreach
(
src
${
OPENCV_MODULE_
${
m
}
_SOURCES
}
)
if
(
IS_ABSOLUTE
"
${
src
}
"
)
file
(
RELATIVE_PATH srcname
"
${
OPENCV_MODULE_
${
m
}
_LOCATION
}
"
"
${
src
}
"
)
foreach
(
srcname
${
OPENCV_MODULE_
${
m
}
_SOURCES
}
)
if
(
srcname MATCHES
"
\\
.(cpp|mm|c|cxx|cc|o|obj)$"
)
if
(
srcname MATCHES
"
\\
.(o|obj)$"
)
if
(
IS_ABSOLUTE
"
${
srcname
}
"
)
set
(
objpath3
"
${
srcname
}
"
)
else
()
set
(
srcname
"
${
src
}
"
)
set
(
objpath3
"
${${
m
}
_SOURCE_DIR
}
/
${
srcname
}
"
)
endif
()
else
()
if
(
IS_ABSOLUTE
"
${
srcname
}
"
)
file
(
RELATIVE_PATH srcname
"
${
OPENCV_MODULE_
${
m
}
_LOCATION
}
"
"
${
srcname
}
"
)
endif
()
string
(
REPLACE
".."
"__"
srcname
"
${
srcname
}
"
)
if
(
srcname MATCHES
"
\\
.(cpp|mm|c|cxx|cc)$"
)
get_filename_component
(
srcname_we
${
srcname
}
NAME_WE
)
string
(
REGEX REPLACE <SRC_NAME_WE>
"
${
srcname_we
}
"
objpath2
"
${
objpath1
}
"
)
string
(
REGEX REPLACE <RELATIVE_SRC_NAME>
"
${
srcname
}
"
objpath3
"
${
objpath2
}
"
)
if
(
CMAKE_GENERATOR MATCHES Xcode
)
set
(
objpath4
${
objpath3
}
)
else
()
endif
()
if
(
CMAKE_GENERATOR MATCHES Makefiles
)
file
(
RELATIVE_PATH objpath4
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
"
${
objpath3
}
"
)
else
()
set
(
objpath4
${
objpath3
}
)
endif
()
list
(
APPEND objlist
"
\"
${
objpath4
}
\"
"
)
endif
()
...
...
@@ -74,7 +81,7 @@ else()
file
(
WRITE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.list"
"
${
objlist
}
"
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
"
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.list"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.rsp"
OUTPUT_QUIET
)
set_target_properties
(
${
the_module
}
PROPERTIES
LINK_FLAGS
@world_objects.rsp
)
LINK_FLAGS
"@
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.rsp"
)
endif
()
ocv_add_precompiled_headers
(
${
the_module
}
)
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