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
aea4486c
Commit
aea4486c
authored
Aug 17, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made "make package_source" work on Mac too.
parent
bd2185db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CMakeLists.txt
CMakeLists.txt
+7
-1
No files found.
CMakeLists.txt
View file @
aea4486c
...
...
@@ -1499,9 +1499,15 @@ set(BUILD_PACKAGE ON CACHE BOOL "Enables 'make package_source' command")
if
(
BUILD_PACKAGE
)
set
(
TARBALL_NAME
"
${
CMAKE_PROJECT_NAME
}
-
${
OPENCV_VERSION_MAJOR
}
.
${
OPENCV_VERSION_MINOR
}
.
${
OPENCV_VERSION_PATCH
}
"
)
if
(
NOT WIN32
)
if
(
APPLE
)
set
(
TAR_CMD gnutar
)
else
()
set
(
TAR_CMD tar
)
endif
()
set
(
TAR_TRANSFORM
"
\"
s,^,
${
TARBALL_NAME
}
/,
\"
"
)
add_custom_target
(
package_source
#TODO: maybe we should not remove dll's
COMMAND
tar --transform 's,^,
${
TARBALL_NAME
}
/,S' -cjpf
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TARBALL_NAME
}
.tar.bz2 --exclude-vcs
--exclude=
"*.pyc"
--exclude=
"*.vcproj"
--exclude=
"*/lib/*"
--exclude=
"*.dll"
./
COMMAND
${
TAR_CMD
}
--transform
${
TAR_TRANSFORM
}
-cjpf
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TARBALL_NAME
}
.tar.bz2 --exclude=
".svn"
--exclude=
"*.pyc"
--exclude=
"*.vcproj"
--exclude=
"*/lib/*"
--exclude=
"*.dll"
./
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
else
()
add_custom_target
(
package_source
...
...
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