cpack

How can I use bindpaths to create a WiX Patch?

橙三吉。 提交于 2019-12-12 04:54:11
问题 I'm using cmake/cpack to build my project with WiX. cmake runs heat.exe (or something similar) which produces files.wxs that contains the files of my project in the following format: We'll assume a single file named a.txt inside a folder named "bin". The project is built in NewFolder on the Desktop. <DirectoryRef Id="CM_DP_bin"> <Component Id="CM_CP_bin.a.txt" Guid="*"> <File Id="CM_FP_bin.a.txt" Source="C:/Users/mindlessbot/Desktop/NewFolder/_CPack_Packages/WIX/packageName/bin/a.txt" KeyPath

How to set wizard images in NSIS through CMake/CPack?

荒凉一梦 提交于 2019-12-11 07:02:43
问题 I see that there is no CPACK_xxx variable for changing the wizard image(s) in NSIS (like CPACK_PACKAGE_ICON). So I copied the NSIS.template.in and modified it. I could do something like: !define MUI_WELCOMEFINISHPAGE_BITMAP "C:\work\project\img\wizardInstall.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "C:\work\project\img\wizardUninstall.bmp" and it will work. However, the source code goes in a repository where many developers colaborate, and it's not really good idea to keep absolute paths

CPack NSIS, generate installer for Windows

别说谁变了你拦得住时间么 提交于 2019-12-11 03:14:25
问题 I´m trying to run packet generator within a VS project, it crashes while compiling because of the use of absolute path on installation from Targets and Files. ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ... I checked twice and all installation directories are relative. I set quite a lot of variables as sub-folders of ${PROJECT_BINARY_DIR} (which should be relative) such as: set(INSTALL_DIR ${PROJECT_BINARY_DIR}/bin) set(LIB_DIR ${PROJECT_BINARY_DIR}/bin/lib) set(EXT_DIR ${PROJECT

cpack component level install

半城伤御伤魂 提交于 2019-12-10 19:18:44
问题 For the example CMakeLists.txt attached to CMake wiki. I also added below what is the actual make command to create just the component based TGZ. I am confused and not seeing any help in the documents. CMakeLists.txt cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR) project(MyLib) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Install path prefix prepended on to install directories." FORCE) endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set

CMake rpm installing a file in /etc/init.d

萝らか妹 提交于 2019-12-08 00:58:43
问题 I want to install a file in /etc/ini.d directory I have written code INSTALL(FILES ${CMAKE_SOURCE_DIR}/app/script/appd DESTINATION /etc/init.d/appd) but when I run packing code using cmake I get error CMake Error at /home/vivek/workspace/app/build/standalone/cmake_install.cmake:54 (FILE): file cannot create directory: /etc/init.d/appd. Maybe need administrative privileges. How can I set cmake to install a file inside /etc/init.d directory ? 回答1: You can do this, but you may need to explicitly

Generate two different package using CPack in cmake : Linux

拥有回忆 提交于 2019-12-07 11:07:06
问题 I want to create two different package for my project. DCM (Includes all the modules except RCM specific module ) RCM (Specific Module.) 1. DCM : src/CMakeList.txt cmake_minimum_required (VERSION 2.8) add_subdirectory(ecs) # Include all modules set(CPACK_GENERATOR TGZ) set(CPACK_PACKAGE_NAME "dcm") set(CPACK_PACKAGE_VENDOR "AB") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Device Control") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt") set(CPACK_RESOURCE_FILE_LICENSE "

Name and description of multiple debian packages with CMake and CPack

时光毁灭记忆、已成空白 提交于 2019-12-07 10:40:59
问题 I am currently trying to generate more than one debian package from my project. My only problem with this is setting the name, description, group and so forth of the packages. # -------------------------------------------------------------- # Required CMake version # -------------------------------------------------------------- CMAKE_MINIMUM_REQUIRED (VERSION 2.8) # -------------------------------------------------------------- # Project name # -----------------------------------------------

Can CMake/CPack generate multiple NSIS installers for a single project?

你说的曾经没有我的故事 提交于 2019-12-07 03:32:30
问题 I have a single project (with sub-projects) for which I would like to generate multiple NSIS installer executables, instead of having multiple components listed in a single NSIS installer. Is this possible? Or do I need to organize my code into separate projects? 回答1: One could provide a CMake attribute e.g. COMPONENT which can be set to a value from a predefined set of package names like: COMPONENT_1|COMPONENT_2|...COMPONENT_X The package name could even be a name that does not correspond to

CPack tries to build all targets

↘锁芯ラ 提交于 2019-12-07 02:57:39
问题 I have a CMake project composed of one root CMakeLists and multiple sub- CMakeLists (one for each project). I am trying to use CPack to generate a .deb file for one of these projects (APP_client). Yet, when I try to run CPack , it first runs a 'preinstall' and try to build all targets. I want to build only the required targets and their dependencies. Here is what I added to one of my CMakeLists : if(UNIX) INSTALL( TARGETS ${PROJECT_NAME} COMPONENT ${PROJECT_NAME} DESTINATION ${PROJECT_INSTALL

CPack DEB generator: control-file-has-bad-permissions mdsums 0644 != 0644

谁说我不能喝 提交于 2019-12-07 01:04:02
问题 I am developing small console application and I was trying to create Ubuntu package using CPack. Ubuntu version is 13.04 and my main CPack file is below. Package is created correctly, but while trying to install it using graphic interface (basically double click on deb file in Ubuntu) following warning appears: Package is of bad quality control-file-has-bad-permissions mdsums 0644 != 0644 Does anybody know what is the reason of that? And more importantly, how to fix it? CMake version is 2.8