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
c5df95d5
Commit
c5df95d5
authored
Jun 15, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shortened cmake script for opencv_world
parent
58aac7ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
21 deletions
+10
-21
CMakeLists.txt
modules/world/CMakeLists.txt
+10
-21
No files found.
modules/world/CMakeLists.txt
View file @
c5df95d5
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
)
if
(
IOS
)
set
(
BUILD_WORLD_AS_STATIC 1
)
endif
()
if
(
NOT BUILD_WORLD_AS_STATIC
)
set
(
OPENCV_MODULE_TYPE SHARED
)
if
(
IOS OR NOT BUILD_SHARED_LIBS
)
set
(
OPENCV_MODULE_TYPE STATIC
)
set
(
OPENCV_WORLD_FLAGS_PROPERTY STATIC_LIBRARY_FLAGS
)
else
()
set
(
OPENCV_WORLD_FLAGS_PROPERTY LINK_FLAGS
)
endif
()
ocv_add_module
(
world opencv_core
)
...
...
@@ -85,25 +85,14 @@ string(REPLACE ";" " " objlist "${objlist}")
if
(
have_cfg
)
string
(
REGEX REPLACE
"<CONFIGURATION>"
"Debug"
objlist_dbg
"
${
objlist
}
"
)
string
(
REGEX REPLACE
"<CONFIGURATION>"
"Release"
objlist_rls
"
${
objlist
}
"
)
if
(
BUILD_WORLD_AS_STATIC
)
set_target_properties
(
${
the_module
}
PROPERTIES
STATIC_LIBRARY_FLAGS_DEBUG
${
objlist_dbg
}
STATIC_LIBRARY_FLAGS_RELEASE
${
objlist_rls
}
)
else
()
set_target_properties
(
${
the_module
}
PROPERTIES
LINK_FLAGS_DEBUG
${
objlist_dbg
}
LINK_FLAGS_RELEASE
${
objlist_rls
}
)
endif
()
set_target_properties
(
${
the_module
}
PROPERTIES
${
OPENCV_WORLD_FLAGS_PROPERTY
}
_DEBUG
${
objlist_dbg
}
${
OPENCV_WORLD_FLAGS_PROPERTY
}
_RELEASE
${
objlist_rls
}
)
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
)
if
(
BUILD_WORLD_AS_STATIC
)
set_target_properties
(
${
the_module
}
PROPERTIES
STATIC_LIBRARY_FLAGS
"@
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.rsp"
)
else
()
set_target_properties
(
${
the_module
}
PROPERTIES
LINK_FLAGS
"@
${
CMAKE_CURRENT_BINARY_DIR
}
/world_objects.rsp"
)
endif
()
set_target_properties
(
${
the_module
}
PROPERTIES
${
OPENCV_WORLD_FLAGS_PROPERTY
}
"@
${
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