cpack

How to build debian package with CPack to execute setup.py?

元气小坏坏 提交于 2019-11-28 21:05:37
问题 Until now, my project had only .cpp files that were compiled into different binaries and I managed to configure CPack to build a proper debian package without any problems. Recently I wrote a couple of python applications and added them to the project, as well as some custom modules that I would also like to incorporate to the package. After writing a setup.py script, I'm wondering how to add these files to the CPack configuration in a way that setup.py get's executed automatically when the

How to create an installer with CMake + CPack + NSIS on Windows?

Deadly 提交于 2019-11-28 20:09:06
问题 I'd like to create a cross-platform installer for a C++ based system I am building. I use CMake to build everything, and it would be great if I could use CPack to make the installer. I already have CPack working on OSX, but I cannot get it to work on Windows. To make things easier, I tried to get the example at http://www.cmake.org/Wiki/CMake:Packaging_With_CPack to work with the NSIS installer software. I cannot find the NSIS installer anywhere after configuring (with VS 2010 Win64 generator

How to install your custom CMake-Find module

落花浮王杯 提交于 2019-11-28 05:13:08
I configure and package my library using CMake and CPack. I have written my own find-module: FindMyLib.cmake . How do I tell CMake/CPack to add this file to the CMake module directory, so that future developers can simply specify FIND_PACKAGE(MyLib) to use my library? You can set CMAKE_MODULE_PATH and distribute your custom FindFoo.cmake with your project. For example: set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") Fraser The CMake module directory is part of the install tree of CMake itself, and as such you shouldn't be trying to add anything there. The CMake

CPack: Exclude INSTALL commands from subdirectory (googletest directory)

戏子无情 提交于 2019-11-27 16:11:26
I'm using CMake for a project and googletest for my test cases. Looking around the internet, it seems to be common practise to just copy the googletest source into a subfolder of your repository and include it with "add_subdirectory(googletest)". I did that. Now I'm using CPack to generate debian packages for my project. Unfortunately, the packages generated by CPack install googletest alongside with my project. This is of course not what I want. Looking in the googletest directory, I found some INSTALL cmake commands there, so it is clear, why it happens. The question is now - how can I avoid

How to install your custom CMake-Find module

谁说胖子不能爱 提交于 2019-11-27 00:50:23
问题 I configure and package my library using CMake and CPack. I have written my own find-module: FindMyLib.cmake . How do I tell CMake/CPack to add this file to the CMake module directory, so that future developers can simply specify FIND_PACKAGE(MyLib) to use my library? 回答1: You can set CMAKE_MODULE_PATH and distribute your custom FindFoo.cmake with your project. For example: set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") 回答2: The CMake module directory is part