2013/9/27 Michele Dolfi <[email protected]>: > Hi, > > Is it possible to create custom components in CPack to add > CMAKE_INSTALL_PREFIX/bin to the user ~/.profile?
CMAKE_INSTALL_PREFIX is not used by CPack at least not directly. You may want to use: CPACK_PACKAGING_INSTALL_PREFIX or CPACK_PACKAGE_INSTALL_DIRECTORY > I would like to have an additional entry in the GUI created with > PackageMaker that the user could select to patch the .profile. I don't think you can do that out-of-the-box. But I do not know the PackageMaker generator. > Using install(SCRIPT ...) in CMake the patch my own .profile, not the one of > the user installing my app. Yes you want a "post-install" script. With PackageMaker you have the CPACK_PREFLIGHT_SCRIPT CPACK_POSTFLIGHT_SCRIPT which may be used to do that but I don't know how they works and whether if they are "selectable" at install time. -- Erk L'élection n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
