Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
b25820eb
Commit
b25820eb
authored
19 years ago
by
Andy Cedilnik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add resource files for PackageMaker
parent
a87de1e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Modules/CPack.cmake
+16
-3
16 additions, 3 deletions
Modules/CPack.cmake
Templates/CPack.GenericLicense.txt
+15
-0
15 additions, 0 deletions
Templates/CPack.GenericLicense.txt
Templates/CPack.GenericWelcome.txt
+2
-0
2 additions, 0 deletions
Templates/CPack.GenericWelcome.txt
with
33 additions
and
3 deletions
Modules/CPack.cmake
+
16
−
3
View file @
b25820eb
...
...
@@ -21,8 +21,15 @@ cpack_set_if_not_set(CPACK_PACKAGE_VERSION
cpack_set_if_not_set
(
CPACK_PACKAGE_VENDOR
"Humanity"
)
cpack_set_if_not_set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"
${
PROJECT_NAME
}
built using CMake"
)
cpack_set_if_not_set
(
CPACK_PACKAGE_DESCRIPTION_FILE
"
${
CMAKE_ROOT
}
/Templates/CPack.GenericDescription.txt"
)
cpack_set_if_not_set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_ROOT
}
/Templates/CPack.GenericLicense.txt"
)
cpack_set_if_not_set
(
CPACK_RESOURCE_FILE_README
"
${
CMAKE_ROOT
}
/Templates/CPack.GenericDescription.txt"
)
cpack_set_if_not_set
(
CPACK_RESOURCE_FILE_WELCOME
"
${
CMAKE_ROOT
}
/Templates/CPack.GenericWelcome.txt"
)
# <project>-<major>.<minor>.<patch>-<release>-<platform>.<pkgtype>
cpack_set_if_not_set
(
CPACK_PACKAGE_FILE_NAME
...
...
@@ -32,9 +39,15 @@ cpack_set_if_not_set(CPACK_PACKAGE_INSTALL_DIRECTORY
cpack_set_if_not_set
(
CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"
${
CPACK_PACKAGE_NAME
}
${
CPACK_PACKAGE_VERSION
}
"
)
IF
(
NOT EXISTS
"
${
CPACK_PACKAGE_DESCRIPTION_FILE
}
"
)
MESSAGE
(
SEND_ERROR
"CPack package description file:
\"
${
CPACK_PACKAGE_DESCRIPTION_FILE
}
\"
could not be found."
)
ENDIF
(
NOT EXISTS
"
${
CPACK_PACKAGE_DESCRIPTION_FILE
}
"
)
MACRO
(
cpack_check_file_exists file description
)
IF
(
NOT EXISTS
"
${
file
}
"
)
MESSAGE
(
SEND_ERROR
"CPack
${
description
}
file:
\"
${
file
}
\"
could not be found."
)
ENDIF
(
NOT EXISTS
"
${
file
}
"
)
ENDMACRO
(
cpack_check_file_exists
)
cpack_check_file_exists
(
"
${
CPACK_PACKAGE_DESCRIPTION_FILE
}
"
"package description"
)
cpack_check_file_exists
(
"
${
CPACK_RESOURCE_FILE_LICENSE
}
"
"license resource"
)
cpack_check_file_exists
(
"
${
CPACK_RESOURCE_FILE_README
}
"
"readme resource"
)
cpack_check_file_exists
(
"
${
CPACK_RESOURCE_FILE_WELCOME
}
"
"welcome resource"
)
# Pick a generator
IF
(
NOT CPACK_GENERATOR
)
...
...
This diff is collapsed.
Click to expand it.
Templates/CPack.GenericLicense.txt
0 → 100644
+
15
−
0
View file @
b25820eb
LICENSE
=======
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
For more information, please contact the vendor of this package.
This diff is collapsed.
Click to expand it.
Templates/CPack.GenericWelcome.txt
0 → 100644
+
2
−
0
View file @
b25820eb
Welcome to installation. This program will guide you through the installation
of this software.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment