summaryrefslogtreecommitdiff
path: root/Modules/CPack.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CPack: Add a WiX Generator (#11575)Nils Gladitz2012-12-031-1/+6
| | | | | | | | | | This new CPack generator produces an *.msi installer file. Requires having the WiX Toolset installed in order to work properly. Download the WiX Toolset installer "WiX36.exe" here: http://wix.codeplex.com/releases/view/93929
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-38/+38
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-68/+68
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-9/+9
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Do not provide defaul value for CPACK_PACKAGE_DIRECTORY if found in config.Eric NOULARD2012-07-041-0/+8
| | | | This fixes bug #0012906.
* Merge topic 'fix-9946-uninstall-before-install'David Cole2012-04-251-0/+4
|\ | | | | | | | | fe58b67 Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
| * Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALLPatrick Gansterer2012-04-221-0/+4
| | | | | | | | If CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL is set to ON the NSIS installer will look for a previous installed version and ask the user about uninstall.
* | Fix CPack RPM man page typo detected by lintian.Modestas Vainius2012-04-201-0/+1
|/ | | | Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* Add some missing CPACK_NSIS_xxx doc and move some to common CPack section.Eric NOULARD2012-03-061-0/+14
|
* Review and update CPack variable documentation.Eric NOULARD2012-02-251-78/+106
| | | | | | | This concerns all variables common to all CPack generators. Variables mainly used and/or set in CPack.cmake are documented therein. C++ built-in variables are documented in cmCPackDocumentVariables.cxx.
* Put CPack DMG and PackageMaker doc in separate filesEric NOULARD2012-02-181-55/+0
|
* Make the load of script documentation more efficient and dynamic.Eric NOULARD2012-02-141-9/+13
| | | | | | | | CPack help will be searched in any CPack*.cmake file located near to CPack.cmake file. The script files is parsed iff the first line begin with ##section. Moreover the documentation section name is specified on the remaining part of the line minus the space immediately following ##section.
* CPack Documentation extraction from CMake script begins to workEric NOULARD2012-01-221-4/+51
| | | | | | | | | | - Enhance extract doc parser. Seems robust now. The legacy module documentation parser works as before ignoring the new markup. - Proof of concept for CPack (generic), CPack RPM and CPack Deb generator for macro and variables. Try cpack --help-command and cpack --help-variables
* Implement simple CMake script comment markup language.Eric NOULARD2012-01-221-0/+12
| | | | | | | | | The language is very simple. It use ##<keyword> special comment which opens a structured documentation block and ##end closes it. This may be used to extract documentation for macro as 'command' and 'variables' such that cpack --help-command and --help-variable does parse builtin modules files (CPack.cmake, CPackComponent.cmake, ...) in order to extract the corresponding doc.
* CPack fix #12449 doc mispelledEric NOULARD2011-09-081-1/+1
| | | | CPACK_INSTALL_DIRECTORIES-->CPACK_INSTALLED_DIRECTORIESœ
* CPack/NSIS: Fix reinstall and multiple install issues when using components.Clinton Stimpson2011-07-291-1/+1
| | | | | | | | | | | | | | Fix NSIS template to more thoroughly use CPACK_PACKAGE_INSTALL_REGISTRY_KEY. This allows different versions of software to have a separate sections in the registry to keep track of things (installed components, and uninstall stuff). Change default of CPACK_PACKAGE_INSTALL_REGISTRY_KEY to follow the value of CPACK_PACKAGE_INSTALL_DIRECTORY so if an installation overwrites another installation, the proper registry entries are more likely to be overwritten. Fix CPack/NSIS generator to not insert code in the NSIS template to skip installation of already installed components. This enables a repair like behavior and also enables installing patch releases on top of an older installation.
* Split CPack.cmake in more manageable partsEric NOULARD2011-04-041-491/+12
| | | | | | Put NSIS, Bundle and Component related MACROs in separate files. This does not implies functional changes, concerning the way CPack is used.
* Merge topic 'fix-9148-cpack-nsis-installer-root'Brad King2011-01-111-0/+10
|\ | | | | | | | | 5a9e8e7 CPack: Add CPACK_NSIS_INSTALL_ROOT variable (#9148)
| * CPack: Add CPACK_NSIS_INSTALL_ROOT variable (#9148)David Cole2011-01-111-0/+10
| | | | | | | | | | | | | | | | | | | | Control the root directory of the default directory presented to the end user of an NSIS installer by a CPack variable. Previously, the value used in the NSIS script was $PROGRAMFILES, which is equivalent to the "ProgramFiles" environment variable. That default value is still the same, but now a project may override the value by setting this new variable.
* | Add CPack NSIS MUI_FINISHPAGE_RUN support (#11144)Mike McQuaid2011-01-061-0/+3
| | | | | | | | | | | | | | MUI_FINISHPAGE_RUN is frequently used with NSIS and provides a checkbox on the finish page of an installer which specifies whether the specified executable should be run when the installer exits. This commit adds support for this setting in CPack.
* | Add CPACK_NSIS_EXECUTABLES_DIRECTORY (#7828)Mike McQuaid2011-01-061-0/+5
|/ | | | | | | | NSIS installers default to assuming the executables exist in a directory named "bin" under the installation directory. As this isn't usual for Windows programs, the addition of this variable allows the customization of this directory and links still to be created correctly.
* Add documentation for CPACK_PROJECT_CONFIG_FILE.David Cole2010-08-111-3/+40
|
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Add .git .bzr and .hg to the list of default CPack ignore directories.Bill Hoffman2010-03-081-1/+1
|
* Fix issue #10055 - add documentation for the CPack Mac OSX only Bundle ↵David Cole2009-12-151-0/+21
| | | | | | generator. Thanks to Tim Shead for the patch.
* Fix issue #9782 - add documentation for variables used by CPack DragNDrop ↵David Cole2009-12-151-0/+39
| | | | | | generators. Thanks to Michael Wild for the patch.
* Fix regression with CPACK_NSIS_PACKAGE_NAME, if the project is setting the ↵Bill Hoffman2009-11-121-2/+16
| | | | CPACK_NSIS_DISPLAY_NAME then use that as the default value and not the CPACK_PACKAGE_INSTALL_DIRECTORY, also make sure it escapes \ correctly.
* Convert CMake non-find modules to BSD LicenseBrad King2009-09-281-0/+12
| | | | | | | This adds copyright/license notification blocks CMake's non-find modules. Most of the modules had no notices at all. Some had notices referring to the BSD license already. This commit normalizes existing notices and adds missing notices.
* some white space fixes for the bookKen Martin2009-09-031-2/+3
|
* BUG: Re-fix issue #8682. Use new variable CPACK_NSIS_PACKAGE_NAME in ↵David Cole2009-07-161-1/+5
| | | | appropriate places rather than CPACK_NSIS_DISPLAY_NAME. CPACK_NSIS_DISPLAY_NAME is the Add/Remove control panel's description string for the installed package. Using it as the "Name" of the NSIS installer package made the CMake installer itself use really long strings in the installer GUI. This fix still allows for the original intent of the first fix for #8682 -- the ability to separate the installer name from the default install directory, but it uses a new/different variable to achieve the separation.
* STYLE: Use $ style variable dereference instead of @ style.David Cole2009-03-051-1/+1
|
* ENH: Turn off CPACK_BINARY_TBZ2 and CPACK_BINARY_ZIP by default. Strictly ↵David Cole2009-01-231-2/+2
| | | | speaking, this changes behavior from cpack 2.6, but now that cpack returns a non-zero exit code when it encounters an error, and it is an error to try to use a generator that is not available... It makes sense to turn these off by default since not everybody has these generators installed. It is easy for a project to turn these options back on if they need to: simply set(CPACK_BINARY_TBZ2 ON) or set(CPACK_BINARY_ZIP ON) before include(CPack) in your CMakeLists.txt...
* BUG: Fix issue #8402. Add a drag and drop bundle generator to the Mac build ↵David Cole2009-01-221-1/+3
| | | | of CPack. Add a test of it in the CPackComponents test. Thanks to Clinton Stimpson for the patch.
* ENH: One more patch from Doug Gregor including PackageMaker functionality ↵David Cole2008-07-091-21/+41
| | | | for componentized-for-the-end-user and download-some-bit-on-demand installers.
* ENH: Further refinement of the CPack components functionality from Doug Gregor.David Cole2008-07-081-3/+609
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Details: ========== - New cpack_add_component, cpack_add_component_group, and cpack_add_install_type "commands" defined as macros in the CPack module. - Documentation for all of the variables and commands in the CPack module. - Added get_cmake_property(... COMPONENTS) to CMake to ask for the names of all components. Used in the CPack module to automatically build component-based installers. (Set CPACK_MONOLITHIC_INSTALL to turn off component-based installation). - A group can declare its PARENT_GROUP, to build an arbitrary hierarchy of groups. - New CPack command cpack_configure_downloads, which creates an installer that downloads only the selected components on-the-fly. Those components marked DOWNLOADED will be separate packages downloaded on-the-fly (or, all packages can be marked as such with the ALL option to cpack_configure_downloads). Individual components are compressed with ZIP at installer-creation time and downloaded/uncompressed by the installer as needed. This feature is only available on Windows with NSIS at the moment. - NSIS installers can install themselves and enable the "Change" button in Add/Remove programs, allowing users to go back and install or remove components. This can be disabled through cpack_configure_downloads, because it's only really useful is most of the application's functionality is in downloaded components. - Bug fix: automatically install everything whose COMPONENT was not specified (it's a hidden, required group) - Bug fix: fixed removal of components when re-running the NSIS installer and unchecking components - Bug fix: NSIS installers now only install/remove the minimal number of files when re-run to update the installation (or by clicking "Change" in Add/Remove programs)
* ENH: Apply patch for feature request #7170. Thanks to Tim Shead for ↵David Cole2008-06-181-1/+3
| | | | contributing...
* ENH: use a common CPACK_BINARY_ prefix for the binary package generatorsAlexander Neundorf2008-04-171-26/+27
| | | | Alex
* ENH: use CPACK_PACKAGE_VERSION instead ofAlexander Neundorf2008-03-261-2/+2
| | | | | | | CPACK_PACKAGE_VERSION_MAJOR.CPACK_PACKAGE_VERSION_MINOR.CPACK_PACKAGE_VERSION_PATCH for creating the package file name Alex
* ENH: Give Mac installers package relocation capability. Default location is ↵David Cole2007-12-261-0/+9
| | | | still the same for backwards compatibility, but packages will now be relocatable by default like they are on Windows via the NSIS installer. New CPack variables for controlling this functionality are CPACK_PACKAGE_DEFAULT_LOCATION and CPACK_PACKAGE_RELOCATABLE.
* ENH: Add CPACK_SET_DESTDIR handling to enable packaging of installed files ↵David Cole2007-10-311-1/+1
| | | | in absolute locations. With this setting on, cpack will set the DESTDIR env var when building the package so that files end up in their intended locations. Default behavior is not to set DESTDIR for backwards compatibility. Helps address issue #4993 and issue #5257. Also, remove unused CPACK_USE_DESTDIR variable. ENH: Add variable CPACK_PACKAGING_INSTALL_PREFIX to allow overriding the CPack GetPackagingInstallPrefix from a project's CMakeLists file if necessary. Could be used to remove the annoying /usr prefix still used by default in the Mac PackageMaker generator.
* ENH: cpack changes, remove the escape variable stuff as it is not needed if ↵Bill Hoffman2007-10-301-89/+3
| | | | you provide a config file for cpack
* ENH: add ability to set installer icons, links to web pages, nsis code in ↵Bill Hoffman2007-10-291-6/+78
| | | | the icon section of the template, and ability to escape variables correctly
* ENH: fix bitmap escapesBill Hoffman2007-10-221-3/+9
|
* ENH: allow CPACK_PACKAGE_ICON to be not setBill Hoffman2007-10-221-0/+10
|
* STYLE: mark the generator options as advancedAlexander Neundorf2007-08-311-0/+7
| | | | Alex
* ENH: add empty RPM package generator, Eric Noulard wants to work on itAlexander Neundorf2007-08-081-0/+2
| | | | Alex
* ENH: better error messages from the debian package generatorAlexander Neundorf2007-08-031-25/+73
| | | | | | | -don't display the cpack help if a generator failed with some problem -check for cmSystemTools::GetErrorOccuredFlag() Alex
* ENH: More work on the packaging. Add Applicaitons, add icons, etcAndy Cedilnik2007-02-131-0/+3
|
* ENH: add support for cygwin source and binary packagingBill Hoffman2007-02-021-0/+4
|
* ENH: Several CPack fixes. First, allow user to set CMAKE_MODULE_PATH for ↵Andy Cedilnik2006-10-121-0/+2
| | | | CPack; make SetOptionIfNotSet more robust to handle empty options; do test TGZ, STGZ, and TZ, Add handling (and test) of Install Script; set environment variable CMAKE_INSTALL_PREFIX