What about checking install_manifest.txt after running the cmake command? Or, if you have multiple components to package in this way, possibly you could use a different CMAKE_INSTALL_PREFIX for each component. Then, either have the installer generator use those directories for packing the installer components, or use some scripting to combine the component installations into a final image directory for the installer generator to read from. -- Daniel
From: CMake [mailto:[email protected]] On Behalf Of Dattu koneru Sent: Wednesday, October 01, 2014 1:10 AM To: [email protected] Subject: [CMake] Fwd: How to get the list of files that will be installed when installing a CMake component Hi , Is there any way to know programmatically ( in cmake ) what files will be installed if a COMPONENT is installed ( something like a get_property of component)? Currently I am installing a COMPONENT to a temporary location for packaging ( not using CPack for packaging ) and then packaging using custom commands. Invoking the following command during packaing in Cmake. cmake -DCOMPONENT=my_test_component -DCMAKE_INSTALL_PREFIX=${TMP_PACKAGING_ROOT} -P ${CMAKE_BINARY_DIR}/cmake_install.cmake I wanted to know if it is possible to get the list of files so that I can only include those files explicitly in the package ? or possibly add them as outputs to the custom command ? ( I tried asking in StackOverflow but no success )
-- 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://public.kitware.com/mailman/listinfo/cmake
